Heikki Linnakangas
84bb600be1
Quote string literals correctly in the new CREATE SERVER statements
...
and binary upgrade UPDATE statements.
2009-04-08 19:02:37 +00:00
Bruce Momjian
baf048d7d2
Improve tab completion for \ef.
...
Andrew Gierth
2009-04-08 04:05:16 +00:00
Bruce Momjian
9dbd94c371
Adjust psql tab completion for new \d 'S' flag behavior; adjust code to
...
be more flexible about additional modifiers for \d commands.
2009-04-06 15:50:59 +00:00
Heikki Linnakangas
1eef90d0a2
Rename the new CREATE DATABASE options to set collation and ctype into
...
LC_COLLATE and LC_CTYPE, per discussion on pgsql-hackers.
2009-04-06 08:42:53 +00:00
Tom Lane
27fbfd396c
Remove a boatload of useless definitions of 'int optreset'. If we
...
are using our own ports of getopt or getopt_long, those will define
the variable for themselves; and if not, we don't need these, because
we never touch the variable anyway.
2009-04-05 04:19:59 +00:00
Tom Lane
591f2944de
Improve obsolete comment.
2009-04-04 00:44:30 +00:00
Tom Lane
81fc5df83e
Make \dt \di and friends more consistent about the treatment of
...
TOAST tables and indexes; to wit, never show either. (You can
examine them with plain \d if you're really so inclined.)
2009-04-04 00:41:11 +00:00
Tom Lane
5b02174144
Add missing help output for \ef option. Andrew Gierth
2009-04-03 23:38:19 +00:00
Bruce Momjian
96e218a049
Do not show information_schema in \d* commands, unless 'S' or pattern is
...
specified.
Martin Pihlak
2009-04-02 17:38:26 +00:00
Bruce Momjian
33e7eac37c
Change psql \d* display so 'S' _or_ a pattern include system objects.
2009-04-02 15:15:32 +00:00
Tom Lane
bfd17f94b6
Improve pg_dump's query for retrieving BLOB comments to be more efficient
...
when there are many blobs and not so many comments. Tamas Vincze
2009-04-01 18:54:27 +00:00
Magnus Hagander
84a059abf7
Don't crash initdb when we fail to get the current username.
...
Give an error message and exit instead, like we do elsewhere...
Per report from Wez Furlong and Robert Treat.
2009-03-31 18:58:16 +00:00
Heikki Linnakangas
c1dcaa86de
Fix tab completion of ANALYZE VERBOSE <tab>. It was previously confused
...
with EXPLAIN ANALYZE VERBOSE.
Greg Sabino Mullane, reformatted by myself. Backpatch to 8.1, where the
bug was introduced.
2009-03-27 14:58:46 +00:00
Peter Eisentraut
8032d76b5b
Gettext plural support
...
In the backend, I changed only a handful of exemplary or important-looking
instances to make use of the plural support; there is probably more work
there. For the rest of the source, this should cover all relevant cases.
2009-03-26 22:26:08 +00:00
Peter Eisentraut
de0c3b3e58
Update line count for \? output (obtained from wc -l)
2009-03-25 13:15:55 +00:00
Peter Eisentraut
842f4bcfe4
In the \? output, align the columns consistently.
2009-03-25 13:14:17 +00:00
Peter Eisentraut
3e90346628
Polish SQL/MED terminology
2009-03-25 13:11:43 +00:00
Peter Eisentraut
ac79586bb2
No period if it's not a sentence
2009-03-25 13:07:26 +00:00
Peter Eisentraut
9987f66001
Fix my typo
2009-03-24 12:57:31 +00:00
Tom Lane
5698f6b925
Remove the -d and -D options of pg_dump and pg_dumpall. The functionality
...
is still available, but you must now write the long equivalent --inserts
or --column-inserts. This change is made to eliminate confusion with the
use of -d to specify a database name in most other Postgres client programs.
Original patch by Greg Mullane, modified per subsequent discussion.
2009-03-22 16:44:26 +00:00
Peter Eisentraut
249d936bed
Rename pg_restore -m to -j, and add documentation about what good numbers
...
are. per discussion on hackers
2009-03-20 09:21:09 +00:00
Peter Eisentraut
5e49291e1b
Add -w option to --help output. It was apparently forgotten when -w was
...
implemented.
2009-03-17 10:10:13 +00:00
Tom Lane
0f80200a8e
Fix identify_locking_dependencies to reflect the fact that fix_dependencies
...
previously repointed TABLE dependencies to TABLE DATA. Mea culpa.
2009-03-13 22:50:44 +00:00
Andrew Dunstan
c394bd331a
Use thread-local storage for querybuffer in fmtId() on Windows, when needed (i.e. when
...
running pg_restore, which might run in parallel).
Only reopen archive file when we really need to read from it, in parallel code. Otherwise,
close it immediately in a worker, if possible.
2009-03-11 03:33:29 +00:00
Alvaro Herrera
fb2ebae498
Add comments about kwlookup.c expectations
2009-03-08 16:53:30 +00:00
Alvaro Herrera
54fd95b293
Avoid MSVC breakage caused by my previous commit by not using a variable in
...
the src/bin/scripts Makefile.
2009-03-07 02:09:22 +00:00
Alvaro Herrera
328d235571
Separate the key word list that lived in keywords.c into a new header file
...
kwlist.h, to avoid having to link the backend object file into other programs
like pg_dump. We can now simply symlink a single source file from the backend
(kwlookup.c, containing the shared routine ScanKeywordLookup) and compile it
locally, which is a lot cleaner.
2009-03-07 00:13:58 +00:00
Peter Eisentraut
ff6c93bf51
Message tuning
2009-03-05 14:51:10 +00:00
Peter Eisentraut
b966b519f5
Provide some proper minimal documentation for the pg_dump(all) --binary-upgrade
...
option. We don't want to commit to what it does, but hiding it will only
cause confusion.
2009-03-04 11:57:00 +00:00
Peter Eisentraut
92fc8b41e5
Add the long options to the psql --help display, where they were curiously
...
missing.
Since this touches most lines of the help output, also change the mix of
puts and printf calls to printf everywhere, for easier code editing and
reviewing.
2009-02-27 09:58:09 +00:00
Peter Eisentraut
257c4ff160
Final removal of -q options, which haven't done anything since 8.3 and
...
were marked for removal in 8.4.
2009-02-26 16:20:55 +00:00
Peter Eisentraut
9de59fd191
Add a -w/--no-password option that prevents all password prompts to all
...
programs that have a -W/--password option.
In passing, remove the ancient PSQL_ALWAYS_GET_PASSWORDS compile option.
2009-02-26 16:02:39 +00:00
Peter Eisentraut
32b02332e1
Use the same style in the help synopsis that other programs are using.
2009-02-25 13:35:18 +00:00
Peter Eisentraut
a3c502c89f
Remove feof(stdin) calls related to when to prompt for a password,
...
leftovers from when the password was read from stdin.
2009-02-25 13:24:40 +00:00
Peter Eisentraut
cd3b750929
Sort the output of --help mostly alphabetical, make it align better, make
...
help of pg_dump and pg_dumpall more similar.
2009-02-25 13:03:07 +00:00
Peter Eisentraut
7babccb915
Add the possibility to specify an explicit validator function for foreign-data
...
wrappers (similar to procedural languages). This way we don't need to retain
the nearly empty libraries, and we are more free in how to implement the
wrapper API in the future.
2009-02-24 10:06:36 +00:00
Tom Lane
7de7876cd5
Fix psql's \dD to show only one row per domain, even when the domain has
...
multiple check constraints.
2009-02-23 15:59:55 +00:00
Andrew Dunstan
fae3083c3b
Reconnect to the right database when using parallel restore with -C. Fixes bug reported by Olivier Prenant
2009-02-20 02:57:21 +00:00
Bruce Momjian
36a9cf38c5
Add --freeze option to vacuumdb.
2009-02-18 12:11:55 +00:00
Bruce Momjian
1d88d4e2c0
Have pg_dump/pg_dumpall --binary-upgrade restore frozenids for relations
...
and databases.
2009-02-18 12:07:08 +00:00
Bruce Momjian
5c89839ab2
Add missing newline.
2009-02-17 22:32:54 +00:00
Bruce Momjian
6883c54a62
Add pg_dump --binary-upgrade flag to be used by binary upgrade
...
utilities.
The new code allows transfer of dropped column information to the
upgraded server.
2009-02-17 15:41:50 +00:00
Bruce Momjian
d665ed5c21
Wrap some long queries.
2009-02-16 23:06:55 +00:00
Bruce Momjian
98ffcb66cb
Uppercase keywords in pg_dump.c
2009-02-16 22:50:41 +00:00
Alvaro Herrera
787020fd3d
Improve psql \d+ to show TOAST reloptions too. Per complaint from
...
ITAGAKI Takahiro.
2009-02-11 19:12:04 +00:00
Andrew Dunstan
775f1b379e
Provide for parallel restoration from a custom format archive. Each data and
...
post-data step is run in a separate worker child (a thread on Windows, a child
process elsewhere) up to the concurrent number specified by the new pg_restore
command-line --multi-thread | -m switch.
Andrew Dunstan, with some editing by Tom Lane.
2009-02-02 20:07:37 +00:00
Alvaro Herrera
3a5b773715
Allow reloption names to have qualifiers, initially supporting a TOAST
...
qualifier, and add support for this in pg_dump.
This allows TOAST tables to have user-defined fillfactor, and will also
enable us to move the autovacuum parameters to reloptions without taking
away the possibility of setting values for TOAST tables.
2009-02-02 19:31:40 +00:00
Magnus Hagander
1ab7dc0630
Support running as a service on Windows 7, by not specifying
...
the JOB_OBJECT_UILIMIT_HANDLES flag.
Dave Page & Magnus Hagander
2009-01-28 11:19:37 +00:00
Peter Eisentraut
5fe3da927b
Revert updatable views
2009-01-27 12:40:15 +00:00
Tom Lane
3cb5d6580a
Support column-level privileges, as required by SQL standard.
...
Stephen Frost, with help from KaiGai Kohei and others
2009-01-22 20:16:10 +00:00