Bruce Momjian
626eca697c
This patch reserves the last superuser_reserved_connections slots for
...
connections by the superuser only.
This patch replaces the last patch I sent a couple of days ago.
It closes a connection that has not been authorised by a superuser if it would
leave less than the GUC variable ReservedBackends
(superuser_reserved_connections in postgres.conf) backend process slots free
in the SISeg. This differs to the first patch which only reserved the last
ReservedBackends slots in the procState array. This has made the free slot
test more expensive due to the use of a lock.
After thinking about a comment on the first patch I've also made it a fatal
error if the number of reserved slots is not less than the maximum number of
connections.
Nigel J. Andrews
2002-08-29 21:02:12 +00:00
Bruce Momjian
1761990e38
please apply small patch for README.tsearch.
...
I've documented space usage and using CLUSTER command
Oleg Bartunov
2002-08-29 19:55:26 +00:00
Bruce Momjian
31fbdad6e5
The unit for statement_timeout is s/1000, not s/1000000
...
Manfred Koizar
2002-08-29 19:53:58 +00:00
Bruce Momjian
a4f6add21b
Back out patch, that was alpha, which I think still needs just -O.
2002-08-29 19:35:47 +00:00
Bruce Momjian
19deb4fc41
Change FreeBSD to use -O2, important for MemSet.
2002-08-29 19:35:07 +00:00
Tom Lane
e4186762ff
Adjust nodeFunctionscan.c to reset transient memory context between calls
...
to the table function, thus preventing memory leakage accumulation across
calls. This means that SRFs need to be careful to distinguish permanent
and local storage; adjust code and documentation accordingly. Patch by
Joe Conway, very minor tweaks by Tom Lane.
2002-08-29 17:14:33 +00:00
Tom Lane
0201dac1c3
Push down outer qualification clauses into UNION and INTERSECT subqueries.
...
Per pghackers discussion from back around 1-August.
2002-08-29 16:03:49 +00:00
Tom Lane
d2236800ee
Cause REINDEX to regard TOAST tables as regular relations, not system
...
tables that need special defenses. I believe this is okay even for
TOAST tables that belong to system tables.
2002-08-29 15:56:20 +00:00
D'Arcy J.M. Cain
5f97dc3e7c
chkpass_rout returns text so change PG_RETURN_CSTRING to PG_RETURN_TEXT_P.
...
This is currently a cosmetic difference but I make the change now in case
the macros diverge one day.
2002-08-29 12:18:20 +00:00
Tatsuo Ishii
0308d66a6a
Remove MULTIBYTE
2002-08-29 08:03:22 +00:00
Tatsuo Ishii
ed7baeaf4d
Remove #ifdef MULTIBYTE per hackers list discussion.
2002-08-29 07:22:30 +00:00
Tom Lane
8e80dbb849
Rephrase 'Cannot insert into a view' and related messages, per
...
pghackers discussion around 31-Jul-02.
2002-08-29 06:05:27 +00:00
Tom Lane
bf59ccc7d8
A few more fixes for the <replaceable>able> fiasco.
2002-08-29 05:17:55 +00:00
Tatsuo Ishii
16402ac6e3
update mbregress expected files
2002-08-29 04:43:55 +00:00
Tom Lane
dc4e983ff6
Produce a somewhat-useful error message, namely
...
ERROR: Cannot display a value of type RECORD
rather than a random integer when someone tries to SELECT a tuple
value. Per pghackers discussion around 26-May-02.
2002-08-29 04:38:04 +00:00
Tom Lane
99fd5cbd41
FOUND patch was a bit over-enthusiastic: SQL commands that are not
...
INSERT, UPDATE, or DELETE shouldn't change FOUND. IMHO anyway.
Also, try to make documentation a little clearer.
2002-08-29 04:12:03 +00:00
Tom Lane
5241a6259f
Remove support for version-0 FE/BE protocol, per pghackers discussion.
...
This breaks support for 6.2 or older client libraries.
2002-08-29 03:22:01 +00:00
Tom Lane
8a24a55c81
Fix ruleutils to dump column definition lists for anonymous record types
...
defined in the FROM clause. From Joe Conway, with some tweaks.
2002-08-29 01:19:41 +00:00
Tom Lane
64505ed58b
Code review for standalone composite types, query-specified composite
...
types, SRFs. Not happy with memory management yet, but I'll commit these
other changes.
2002-08-29 00:17:06 +00:00
Tom Lane
7483749d82
Improve description of tablefunc.
2002-08-28 22:05:46 +00:00
Peter Eisentraut
12f80d7c69
Initial Spanish translation from Karim Mribti <karim@inlosa.com>
2002-08-28 21:01:14 +00:00
Peter Eisentraut
3aaffad26f
Updates from Dennis Bjorklund
2002-08-28 20:58:45 +00:00
Peter Eisentraut
d54caa6b34
Break up the long usage messages in pg_dump and pg_restore and
...
unify the wording, to make life easier for translators.
from Dennis Bjorklund
2002-08-28 20:57:22 +00:00
Bruce Momjian
03d39ce080
Remove TIOGA files from CVS current; they remain in repositiry.
2002-08-28 20:55:23 +00:00
Bruce Momjian
fbb1966cf3
This trivial patches fixes the error message returned by CREATE INDEX
...
when it finds an existing relation with the same name as the
to-be-created index.
Old error message:
nconway=# create table foo (a int);
CREATE TABLE
nconway=# create index foo on foo (a);
ERROR: index named "foo" already exists
I replaced 'index' with 'relation' in the error message.
Neil Conway
2002-08-28 20:46:47 +00:00
Bruce Momjian
81dfa2ce43
backend where a statically sized buffer is written to. Most of these
...
should be pretty safe in practice, but it's probably better to be safe
than sorry.
I was actually looking for cases where NAMEDATALEN is assumed to be
32, but only found one. That's fixed too, as well as a few bits of
code cleanup.
Neil Conway
2002-08-28 20:46:24 +00:00
Bruce Momjian
f5fea0808f
This is a quick patch to fix a crash in pgquery_dictresult() introduced
...
recently. I just ran into it while running a set of python test scripts,
and I'm not sure who the normal maintainer is for interfaces/python.
John Nield
2002-08-28 20:18:58 +00:00
Bruce Momjian
b60acaf568
The following small patch provides a couple of minor updates (against
...
CVS HEAD):
Amended "strings" regression test. TOAST tests now insert two values
with storage set to "external", to exercise properly the TOAST slice
routines which fetch only a subset of the chunks.
Changed now-misleading comment on AlterTableCreateToastTable in
tablecmds.c, because both columns of the index on a toast table are now
used.
John Gray
2002-08-28 20:18:29 +00:00
Bruce Momjian
1923816c37
Add mention of foreign key dependency and SERIAL in 7.2 data restores.
...
Note can probably be removed after a couple of releases.
Rod Taylor
2002-08-28 20:17:44 +00:00
Peter Eisentraut
2364928814
Dump ALTER DATABASE/USER ... SET ...
2002-08-28 18:25:05 +00:00
Bruce Momjian
4469f1aec7
Remove:
...
< * Remove PGPASSWORD because it is insecure on some OS's, in 7.4
2002-08-28 16:45:11 +00:00
Tom Lane
83501ef4ca
Update info about relkind and pg_type entries for composite-types patch.
2002-08-28 15:02:55 +00:00
Bruce Momjian
6077db92c2
Allow FOR UPDATE to appear after LIMIT/OFFSET to match MySQL syntax and as
...
a more logical ordering.
2002-08-28 14:35:37 +00:00
Tom Lane
8e4357d8ad
Fix compile warning.
2002-08-27 21:50:23 +00:00
Peter Eisentraut
f032bccbdd
Flush output streams before calling pg_dump subprocess.
2002-08-27 21:33:41 +00:00
Bruce Momjian
056dee3bad
Add:
...
> o Add SET SCHEMA
2002-08-27 21:16:13 +00:00
Bruce Momjian
9afa305835
Disable use of -c and -a together in pg_dump; they don't make sense together.
2002-08-27 21:04:58 +00:00
Tom Lane
65a34e93c6
Bring comments back in sync with code.
2002-08-27 20:54:47 +00:00
Bruce Momjian
73b94657b0
Throw error on pg_atoi(''), regression adjustments.
2002-08-27 20:29:11 +00:00
Peter Eisentraut
7292131c66
Enable locale, so case conversion (identifier processing) and number
...
formatting (\timing) works correctly. Change "Total time" to "Time"
since there is nothing that "total" refers to. Remove non-multibyte
code.
2002-08-27 20:16:49 +00:00
Peter Eisentraut
7af5ea736f
Reimplement pg_dumpall in C. Currently no change in functionality,
...
except that it's more robust, reconnects less often, and is NLS'ed.
2002-08-27 18:57:26 +00:00
Bruce Momjian
6deb649cd3
Add '+' mention in \? help. More clean of \? to do.
2002-08-27 18:28:29 +00:00
Bruce Momjian
ec11403023
Make change for pg_locks table.
2002-08-27 18:06:00 +00:00
Bruce Momjian
a1c218cae4
The attached patch implements the password packet length sanity check
...
(using an elog(LOG) ), as well as includes a few more comment fixes.
Neil Conway
2002-08-27 16:21:51 +00:00
Bruce Momjian
dbf261f588
Add:
...
> * Allow free space map to be auto-sized or warn when it is too small
2002-08-27 16:19:46 +00:00
Bruce Momjian
cf0be7fe5e
Add error code emails.
2002-08-27 15:31:32 +00:00
Bruce Momjian
fd3c4b2eaf
Add most of Neil Conway's cleanups.
2002-08-27 15:15:23 +00:00
Bruce Momjian
840deabfe0
More connection timeout cleanups.
2002-08-27 15:02:50 +00:00
Bruce Momjian
4e723e6717
Cleanup of libpq connection timeout code.
2002-08-27 14:49:52 +00:00
Bruce Momjian
78a693c430
Add:
...
> * Allow REINDEX to rebuild all indexes, remove /contrib/reindex
> o Allow CLUSTER to cluster all tables, remove clusterdb
2002-08-27 14:17:14 +00:00