Peter Eisentraut
0a203594a9
Translation updates
2003-11-14 02:08:17 +00:00
Tom Lane
18f58a048e
Preliminary code review for C version of initdb. Re-centralize handling
...
of option switches for backend, fix handling of COPY from data files so
that we won't have the newline-after-\. issue back again, add back some
comments and printouts lost from the shell script, etc. Still needs work
for error handling; in particular the shell version worked much more
nicely for the case of a postgres executable that fails on invocation.
2003-11-13 23:46:31 +00:00
Tom Lane
c7bfc7df0a
Silly to copy sprompt.c from src/port when we're linking libpgport anyway.
2003-11-13 20:30:37 +00:00
Bruce Momjian
90823299ad
pgindent new initdb.c from Tom.
2003-11-13 20:12:47 +00:00
Bruce Momjian
ad89c2ae25
Add owner description to initdb C code.
...
Andrew Dunstan
2003-11-13 15:01:40 +00:00
Tom Lane
9a9890d842
Add fflush() calls so that I'm-about-to-do-this messages actually
...
come out before the action is done.
2003-11-13 01:36:00 +00:00
Tom Lane
88dd65ae9f
Fix lack of optreset.
2003-11-13 01:09:24 +00:00
Tom Lane
27e8ef0535
AcceptResult() was missing a case for PGRES_EMPTY_QUERY --- probably
...
my fault. Adding it fixes bogus message display when reading a block
comment at the end of a script file.
2003-11-12 22:53:16 +00:00
Bruce Momjian
1060c4c4c4
Move system_views.sql into backend/catalog, per Tom.
2003-11-11 01:58:23 +00:00
Bruce Momjian
0ca6939c10
Updated version of initdb with "rmdir/del" call on Win32.
...
Other cleanups as discussed.
2003-11-10 22:52:10 +00:00
Bruce Momjian
279598bb71
Add C version of initdb, from Andrew Dunstan.
...
This is his original version with a binary rmdir() we might need in the
future.
I will commit an update version with cleanups shortly.
2003-11-10 22:51:16 +00:00
Bruce Momjian
e065443a39
Allow tab completion for ALTER TABLE dbname <tab><tab> to show new
...
RENAME TO option.
2003-11-08 20:54:24 +00:00
Peter Eisentraut
96889392e9
Implement isolation levels read uncommitted and repeatable read as acting
...
like the next higher one.
2003-11-06 22:08:15 +00:00
Peter Eisentraut
bc010cd9ef
Translation update
2003-10-31 22:14:15 +00:00
Tom Lane
e84487f67a
Further work on tab completion code: arrange for system catalogs to be
...
offered for completion only when the input-so-far is at least 'pg_'.
This seems to be the best compromise behavior emerging from yesterday's
discussion. While at it, refactor code to eliminate repetitive use of
nearly identical queries, which was exceedingly tedious to maintain.
Also const-ify code more thoroughly in hopes of moving constant data into
text segment, and remove unnecessary length limit on queries.
2003-10-30 21:37:38 +00:00
Tom Lane
15c6764bda
Don't include "schema." in the set of possible tab completions once
...
"schema." has been typed. This allows readline to complete subsequent
characters immediately if all relations in the target schema start with
the same prefix. This actually worked before, but I unintentionally
broke it a few days ago.
Also, make completion schema-aware for GRANT, REVOKE, VACUUM.
2003-10-28 23:35:52 +00:00
Tom Lane
e554e2b090
Don't choke when the handler for a procedural language is located in
...
the pg_catalog schema. Per bug report some months back from Jochem van Dieten.
2003-10-28 21:05:29 +00:00
Bruce Momjian
b80b384b78
Allow win32 client compiles with MSC.
...
Hiroshi Saito
2003-10-26 04:29:15 +00:00
Bruce Momjian
8b3414d247
Uppercase a few keywords in queries.
2003-10-26 02:53:45 +00:00
Peter Eisentraut
002e7b3789
Translation updates
2003-10-25 18:03:21 +00:00
Peter Eisentraut
b3be5e65e8
Translation updates
2003-10-24 12:07:56 +00:00
Tom Lane
10add9d8ca
Fix findLastBuiltinOid_V70() to deliver correct result when running
...
against a 7.0 server.
Christopher Kings-Lynne
2003-10-21 04:46:28 +00:00
Tom Lane
3b64171edb
Complain if pg_restore is given both -d and -f options; this suggests
...
the user is confused about whether -f is input or output file.
2003-10-20 21:05:12 +00:00
Peter Eisentraut
1b7ac7f130
Remove automatic '()' in other branch of UNION as well.
2003-10-17 11:52:06 +00:00
Tom Lane
fa2356a1ac
Use pg_get_constraintdef() rather than pg_constraint.consrc; this is
...
a portion of a patch recently submitted by Christopher Kings-Lynne.
Applied by agreement that this is a bug fix.
2003-10-17 00:57:04 +00:00
Peter Eisentraut
4a48c671d2
There should not be an automatic '()' after a function name when
...
tab-completing.
2003-10-16 23:45:29 +00:00
Tom Lane
2ec74435cd
Cause tab completion to do something moderately reasonable with mixed-case
...
identifiers --- it will now complete these correctly with double quoting.
Fix a few other issues in passing.
2003-10-16 20:03:09 +00:00
Peter Eisentraut
3992f1c50b
Translation updates
2003-10-15 10:00:20 +00:00
Peter Eisentraut
e9b2b56c23
New translation
2003-10-15 09:49:07 +00:00
Tom Lane
77c1791a58
Use PQescapeString to ensure that tab-completion queries are not messed
...
up by quotes or backslashes in words that are being matched to database
names (per gripe from Ian Barwick, though I didn't use his patch).
Also fix possible memory leakage if _complete_with_query isn't run to
completion (not clear if that can happen or not, but be safe).
2003-10-14 22:47:12 +00:00
Peter Eisentraut
27318d8873
Translation update
2003-10-13 21:38:37 +00:00
Tom Lane
87299583a5
Determine max_connections first, then see how large shared_buffers can
...
be made, to avoid corner cases where max_connections ends up unreasonably
small because shared_buffers is hogging too much shmem space. Per pghackers
discussion about a week ago. Also, fix the copy-newlines problem in a
more robust way, by using COPY FROM filename instead of COPY FROM STDIN;
per a suggestion from Peter.
2003-10-13 21:06:44 +00:00
Bruce Momjian
7fb9893f42
Back out -fstrict-aliasing void* casting.
2003-10-11 18:04:26 +00:00
Peter Eisentraut
47ed43440e
Translation updates
2003-10-11 17:11:02 +00:00
Bruce Momjian
d51368dbbd
This patch will stop gcc from issuing warnings about type-punned objects
...
when -fstrict-aliasing is turned on, as it is in the latest gcc when you
use -O2
Andrew Dunstan
2003-10-11 16:30:55 +00:00
Peter Eisentraut
108f371769
Translation updates
2003-10-10 08:01:44 +00:00
Bruce Momjian
99a53d89c8
Allow pg_id to compile on Win32.
...
Andrew Dunstan
2003-10-10 01:34:51 +00:00
Peter Eisentraut
46c27c6997
New translations
2003-10-08 20:35:39 +00:00
Peter Eisentraut
c99a41be95
New translations
2003-10-08 18:38:49 +00:00
Bruce Momjian
bdae05f5d1
Use calloc() to allocate empty structures.
...
Fix pg_restore tar log output bug where Special flag wasn't being
initialized; bug seen on XP.
2003-10-08 03:52:32 +00:00
Peter Eisentraut
34e9ab027b
New Italian translation
2003-10-06 21:50:45 +00:00
Peter Eisentraut
f98cbb76a0
Translation updates
2003-10-06 17:37:39 +00:00
Peter Eisentraut
a0ab31dcc6
New Slovene translations
2003-10-06 16:31:16 +00:00
Peter Eisentraut
5e3aaf5402
Translation updates
2003-10-06 06:20:11 +00:00
Tom Lane
351adb8dfb
Fix order of operations within SendQuery() so that the time spent in
...
data transfer during COPY is included in the \timing display. Also
avoid portability problems if tv_usec is unsigned on some platform.
2003-10-06 01:11:12 +00:00
Bruce Momjian
22347dc102
Make psql \timing show three digits.
2003-10-05 22:36:00 +00:00
Peter Eisentraut
eceff4cc55
Translation updates
2003-10-05 21:52:37 +00:00
Peter Eisentraut
0a14ffe5b5
Translation updates
2003-10-04 18:13:16 +00:00
Peter Eisentraut
75e76e1cf5
Translation updates
2003-10-04 01:07:05 +00:00
Peter Eisentraut
9951474c71
Change transaction status indicator in prompt from %T to %x.
2003-10-04 01:04:46 +00:00