Peter Eisentraut
4733dcc592
Translation updates
2004-10-22 16:05:02 +00:00
Peter Eisentraut
77c0204a37
Message styling
2004-10-22 16:04:35 +00:00
Dennis Bjorklund
c70b7b7a6c
Translation update
2004-10-22 14:14:24 +00:00
Dennis Bjorklund
f4eb440279
New swedish translation of pg_config
2004-10-22 14:13:04 +00:00
Dennis Bjorklund
cae2018b49
Translation updates
2004-10-22 13:41:47 +00:00
Tom Lane
c58675b428
Prevent pg_ctl from being run as root. Since it uses configuration files
...
owned by postgres, doing "pg_ctl start" as root could allow a privilege
escalation attack, as pointed out by iDEFENSE. Of course the postmaster would
fail, but we ought to fail a little sooner to protect sysadmins unfamiliar
with Postgres. The chosen fix is to disable root use of pg_ctl in all cases,
just to be confident there are no other holes.
2004-10-22 00:24:18 +00:00
Peter Eisentraut
3371b99e65
New translation
2004-10-19 13:39:27 +00:00
Peter Eisentraut
9f2d5df3b9
Organize the help output a little better. Improve clarity of some messages.
2004-10-19 13:38:53 +00:00
Peter Eisentraut
6e53f18b84
New translation
2004-10-18 22:19:15 +00:00
Peter Eisentraut
2aa8d0a807
Might want to initialize the gettext library, if we're going to do all that
...
translation work.
2004-10-18 22:19:00 +00:00
Peter Eisentraut
a465f24a1e
Translation update
2004-10-18 22:18:03 +00:00
Peter Eisentraut
cd8db9532b
New translation
2004-10-18 17:58:54 +00:00
Peter Eisentraut
d5213d94b9
Translation updates
2004-10-18 17:56:46 +00:00
Peter Eisentraut
68970b3e61
New translation
2004-10-18 17:53:40 +00:00
Bruce Momjian
0060b3c8eb
The attached patch fixes psql's win32 frontend-only build, by using
...
pg_strcasecmp in variables.c, and #ifdef'ing out PostmasterPid in
miscadmin.h.
Dave Page
2004-10-18 16:24:40 +00:00
Tom Lane
877179245d
Tweak pg_dump to handle default tablespaces correctly --- same logic
...
as the corrected pg_get_indexdef code.
2004-10-18 00:20:41 +00:00
Peter Eisentraut
ca14e3bc01
New translation
2004-10-17 21:12:55 +00:00
Peter Eisentraut
8de2e16f1f
New translation
2004-10-17 21:10:25 +00:00
Peter Eisentraut
2f2121ffbe
Translation updates
2004-10-17 21:05:03 +00:00
Peter Eisentraut
63d4f1cdbf
Adjust message
2004-10-17 21:04:41 +00:00
Bruce Momjian
72f9013741
Fix Cygwin using of pg_ctl by not usig START.
...
Reini Urban
2004-10-16 03:32:08 +00:00
Bruce Momjian
88fd162ef6
Allow pg_ctl to determine the server is up when getting a request for a
...
password.
Make password error message a #define and use it consistently.
Sean Chittenden
2004-10-16 03:10:17 +00:00
Bruce Momjian
063216ef3d
Allow psql booleans to use OFF or off.
...
Michael Paesold
2004-10-15 05:02:31 +00:00
Bruce Momjian
8613eac6c4
Fix pg_ctl -D handling for Win32:
...
C:\msys\1.0\home\y-asaba>pg_ctl -D data restart
waiting for postmaster to shut down...LOG: received smart shutdown
request.
LOG: shutting down
LOG: database system is shut down
done
postmaster stopped
postmaster starting
C:\msys\1.0\home\y-asaba>postmaster.exe: invalid argument: "'-D'"
Try "postmaster.exe --help" for more information.
Yoshiyuki Asaba
2004-10-15 04:54:33 +00:00
Bruce Momjian
a49f6ad014
Add full path in error report for version mismatch of binaries.
2004-10-15 04:32:28 +00:00
Neil Conway
8ff374ce91
psql code cleanup:
...
- refactor a bunch of code to call a separate function print_msg() which
checks whether "silent mode" is enabled before printing an error
message.
- rename "silence_mode" to "silent_mode", which IMHO makes more sense
- make the error messages we emit in "waiting" mode more consistent; I
believe this fixes a recent error message regression
2004-10-15 01:36:12 +00:00
Bruce Momjian
5c267325ec
Add 'int' cast for getpid() because some Solaris releases return long
...
for getpid().
2004-10-14 20:23:46 +00:00
Bruce Momjian
e92b007715
pg_restore wording improvement, per Peter.
2004-10-13 14:24:16 +00:00
Bruce Momjian
c55de22d94
Enable service use by Cygwin of pg_ctl.
2004-10-13 10:35:05 +00:00
Bruce Momjian
90542f556b
Clarify pg_restore --help wording.
2004-10-13 00:42:53 +00:00
Peter Eisentraut
0fd37839d9
Message style revisions
2004-10-12 21:54:45 +00:00
Peter Eisentraut
8532a1aabe
New translation
2004-10-12 18:10:16 +00:00
Peter Eisentraut
893094415b
Translation updates
2004-10-12 18:01:20 +00:00
Peter Eisentraut
7656e55639
Translation update
2004-10-12 17:57:14 +00:00
Neil Conway
0e72b9d440
Cosmetic improvements/code cleanup:
...
- replace some function signatures of the form "some_type foo()" with
"some_type foo(void)"
- replace a few instances of a literal 0 being used as a NULL pointer;
there are more instances of this in the code, but I just fixed a few
- in src/backend/utils/mb/wstrncmp.c, replace K&R style function
declarations with ANSI style, remove use of 'register' keyword
- remove an "extern" modifier that was applied to a function definition
(rather than a declaration)
2004-10-10 23:37:45 +00:00
Peter Eisentraut
0d069c53c3
Translation improvement
2004-10-09 17:41:17 +00:00
Bruce Momjian
6c77feed3a
Add win32 version information for pg_config Makefile.
2004-10-09 03:57:39 +00:00
Bruce Momjian
67608a393b
Make getpid() use %d consistently for printing.
2004-10-09 02:46:42 +00:00
Tom Lane
07ccbeb360
Include schema name in pg_restore -l output, per request from Phil Endecott.
2004-10-08 15:03:26 +00:00
Neil Conway
9bf6effd8e
Another minor tweak to psql startup: set the default values for the PROMPT1,
...
PROMPT2 and PROMPT3 variables before we read any of the settings specified
via the user on the command-line or in psqlrc, so that the latter can
override the former. Per original patch from Ingo van Lil, simpler fix
suggested by Tom Lane.
2004-10-08 11:24:19 +00:00
Tom Lane
6a640d1e02
Add missing null terminator to escaped string; clean up unnecessarily
...
obscurantist coding conventions.
2004-10-07 18:57:26 +00:00
Bruce Momjian
6d46ea25f2
Add one more byte to malloc for null storage.
2004-10-07 17:29:12 +00:00
Bruce Momjian
d1cee5495a
Escape single quotes and backslashes used in locales placed in
...
postgresql.conf.
Zhong Xubin
2004-10-07 16:53:25 +00:00
Bruce Momjian
a5d7ba773d
Adjust comments previously moved to column 1 by pgident.
2004-10-07 15:21:58 +00:00
Bruce Momjian
8a28f50f8a
Improve pgindent processing of comment after 'else'.
...
Improve comment of pg_dump Win32 link workaround.
2004-10-07 13:45:51 +00:00
Neil Conway
3ba0fc760c
Capitalize some SQL keywords the previous commit missed, for consistency.
2004-10-06 23:31:45 +00:00
Bruce Momjian
d7e0ebdf8e
Say "history is not supported" and remove "on this platform" for lack of
...
readline.
2004-10-06 19:04:10 +00:00
Bruce Momjian
c62a5465fb
Suppress psql \s help display for platforms like Win32 that don't
...
typically install witn readline, and throw an error if they try to
access it.
2004-10-06 18:39:16 +00:00
Bruce Momjian
a95a82e7f0
Uppercase SQL keywords in query for clarity.
2004-10-06 17:43:07 +00:00
Bruce Momjian
d7b7a4a648
This simple patch fixes a typo, ensure pg_config is removed in win32
...
and correct some splitted message mistake.
Euler Taveira de Oliveira
2004-10-06 17:21:45 +00:00