OSDN Git Service

pg-rex/syncrep.git
21 years agoset.patch updates an example in ref/set.sgml to have microsecond
Bruce Momjian [Wed, 9 Oct 2002 16:27:48 +0000 (16:27 +0000)]
set.patch updates an example in ref/set.sgml to have microsecond
precision.

vacuum.patch updates ref/vacuum.sgml to explicitly state that an
exclusive lock is not obtained during normal (non-FULL) vacuum.

  Rod Taylor

21 years agoLock on the rule relation wasn't removed after adding the comment.
Bruce Momjian [Wed, 9 Oct 2002 16:26:46 +0000 (16:26 +0000)]
Lock on the rule relation wasn't removed after adding the comment.

Added Tom's patch fix for heap_close.

Rod Taylor

21 years ago Well, this patch makes Makefile for contrib/rserv use the
Bruce Momjian [Wed, 9 Oct 2002 16:23:55 +0000 (16:23 +0000)]
   Well, this patch makes Makefile for contrib/rserv use the
   contrib/contrib-global.mk library and _generally_ behave like
   Makefiles for other contrib modules.
   Besides it fixes Perl's interpolation of $libdir variable, which
   should be passed to backend instead. This patch is done against
   PostgreSQL 7.3b2

   Besides, I want to thank Peter Eisentraut for his very friendly and
   helpful attitude and politely ask him to check whether contrib
   modules actually continue to work after he implements another
   major change to their build process.

Alexey Borzov

21 years ago> > > > and mb conversions (pg_ascii2mic and pg_mic2ascii not
Bruce Momjian [Wed, 9 Oct 2002 16:21:54 +0000 (16:21 +0000)]
> > > > and mb conversions (pg_ascii2mic and pg_mic2ascii not
> > > > found in the postmaster and not included from elsewhere)
> >
> > shared libs on AIX need to be able to resolve all symbols at linkage time.
> > Those two symbols are in backend/utils/SUBSYS.o but not in the postgres
> > executable.
>
> They are defined in backend/utils/mb/conv.c and declared in
> include/mb/pg_wchar.h.  They're also linked into the
> postmaster.  I don't see anything unusual.

Attached is a patch to fix the mb linking problems on AIX. As a nice side effect

it reduces the duplicate symbol warnings to linking libpq.so and libecpg.so
(all shlibs that are not postmaster loadable modules).

Please apply to current (only affects AIX).

The _LARGE_FILES problem is unfortunately still open, unless Peter
has fixed it per his recent idea.

Zeugswetter Andreas SB SD

21 years ago> Alvaro Herrera <alvherre@atentus.com> writes:
Bruce Momjian [Wed, 9 Oct 2002 16:20:25 +0000 (16:20 +0000)]
> Alvaro Herrera <alvherre@atentus.com> writes:
> > I'm looking at pg_dump/common.c:flagInhAttrs() and suspect that it can
> > be more or less rewritten completely, and probably should to get rigth
> > all the cases mentioned in the past attisinherited discussion.  Is this
> > desirable for 7.3?  It can probably be hacked around and the rewrite
> > kept for 7.4, but I think it will be much simpler after the rewrite.
>
> If it's a bug then it's fair game to fix in 7.3.  But keep in mind that
> pg_dump has to behave at least somewhat sanely when called against older
> servers ... will your rewrite behave reasonably if the server does not
> offer attinhcount values?

Nah.  I don't think it's worth it: I had forgotten that older versions
should be supported.  I just left the code as is and added a
version-specific test.

This patch allows pg_dump to dump correctly local definition of columns.
In particular,

CREATE TABLE p1 (f1 int, f2 int);
CREATE TABLE p2 (f1 int);
CREATE TABLE c () INHERITS (p1, p2);
ALTER TABLE ONLY p1 DROP COLUMN f1;
CREATE TABLE p3 (f1 int);
CREATE TABLE c2 (f1 int) INHERITS (p3);

Will be dumped as
CREATE TABLE p1 (f2 int);
CREATE TABLE p2 (f1 int);
CREATE TABLE c (f1 int) INHERITS (p1, p2);
CREATE TABLE c2 (f1 int) INHERITS (p3);

(Previous version will dump
CREATE TABLE c () INHERITS (p1, p2)
CREATE TABLE c2 () INHERITS (p3) )

Alvaro Herrera

21 years agoHave SET not start transaction when autocommit off, with doc updates.
Bruce Momjian [Wed, 9 Oct 2002 04:59:38 +0000 (04:59 +0000)]
Have SET not start transaction when autocommit off, with doc updates.

21 years agoAdd:
Bruce Momjian [Wed, 9 Oct 2002 02:04:03 +0000 (02:04 +0000)]
Add:

>  o Allow SHOW of non-modifiable variables, like pg_controldata

21 years agoAgain improve MemSet comments.
Bruce Momjian [Tue, 8 Oct 2002 23:12:22 +0000 (23:12 +0000)]
Again improve MemSet comments.

21 years agoUpdate MemSet comments.
Bruce Momjian [Tue, 8 Oct 2002 19:17:58 +0000 (19:17 +0000)]
Update MemSet comments.

21 years agoMove responsibility for setting QuerySnapshot for utility statements
Tom Lane [Tue, 8 Oct 2002 17:17:19 +0000 (17:17 +0000)]
Move responsibility for setting QuerySnapshot for utility statements
into postgres.c; make sure it happens for all cases that seem to need it.
Perhaps it would be better to explicitly exclude just a few utility
statement types from setting a snapshot?

21 years agofixed missing apostrophe
Dave Cramer [Tue, 8 Oct 2002 01:47:55 +0000 (01:47 +0000)]
fixed missing apostrophe

21 years agoChange order of operations during XLogFlush so that we try to include
Tom Lane [Mon, 7 Oct 2002 17:04:30 +0000 (17:04 +0000)]
Change order of operations during XLogFlush so that we try to include
in our write/flush operation any WAL entries that got queued while we
were waiting to get the WALWriteLock.  This improves throughput when
transactions are small enough that several can be committed per WAL
write (ie, per disk revolution).

21 years agoAvoid PQisBusy/PQconsumeInput busy loop in case of PQisBusy returning
Tatsuo Ishii [Mon, 7 Oct 2002 05:10:02 +0000 (05:10 +0000)]
Avoid PQisBusy/PQconsumeInput busy loop in case of PQisBusy returning
false. per Tom Lane's suggestion. See:

Subject: Suggested change to pgbench
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tatsuo Ishii <t-ishii@sra.co.jp>
Cc: pgsql-patches@postgreSQL.org
Date: Sun, 06 Oct 2002 12:37:27 -0400

for more details.

21 years agoClarify comment.
Bruce Momjian [Sun, 6 Oct 2002 03:56:03 +0000 (03:56 +0000)]
Clarify comment.

21 years agoFix markup error.
Bruce Momjian [Sat, 5 Oct 2002 23:43:42 +0000 (23:43 +0000)]
Fix markup error.

21 years agoAdd:
Bruce Momjian [Sat, 5 Oct 2002 19:04:00 +0000 (19:04 +0000)]
Add:

> * Add now("transaction|statement|clock") functionality

21 years agoAdd more documentation about CURRENT_TIMESTAMP.
Bruce Momjian [Sat, 5 Oct 2002 19:03:16 +0000 (19:03 +0000)]
Add more documentation about CURRENT_TIMESTAMP.

Also, code < and > as &lt;/&gt; for cleaner SGML.

21 years agoUpdate:
Bruce Momjian [Sat, 5 Oct 2002 04:00:26 +0000 (04:00 +0000)]
Update:

> * Allow sorting, temp files, temp tables to use multiple work directories

21 years agoRestrict CREATE OPERATOR CLASS to superusers, per discussion some weeks
Tom Lane [Fri, 4 Oct 2002 22:19:29 +0000 (22:19 +0000)]
Restrict CREATE OPERATOR CLASS to superusers, per discussion some weeks
ago.

21 years agoRequire superuser privilege to create a binary-compatible cast, per
Tom Lane [Fri, 4 Oct 2002 22:08:44 +0000 (22:08 +0000)]
Require superuser privilege to create a binary-compatible cast, per
discussion some weeks ago.  Also, add a check that two types to be
binary-equivalenced match as to typlen, typbyval, and typalign; if
they don't then it's surely a mistake to equivalence them.

21 years agoUpdate wording for temp files:
Bruce Momjian [Fri, 4 Oct 2002 19:06:07 +0000 (19:06 +0000)]
Update wording for temp files:

> * Allow sorting/temp files to use multiple work directories

21 years agoFix a couple of grammatical errors in error messages.
Tom Lane [Fri, 4 Oct 2002 17:34:01 +0000 (17:34 +0000)]
Fix a couple of grammatical errors in error messages.

21 years agoAdd:
Bruce Momjian [Fri, 4 Oct 2002 17:26:56 +0000 (17:26 +0000)]
Add:

> * Allow sorting to use multiple work directories

21 years agoTweak a few of the most heavily used function call points to zero out
Tom Lane [Fri, 4 Oct 2002 17:19:55 +0000 (17:19 +0000)]
Tweak a few of the most heavily used function call points to zero out
just the significant fields of FunctionCallInfoData, rather than MemSet'ing
the whole struct to zero.  Unused positions in the arg[] array will
thereby contain garbage rather than zeroes.  This buys back some of the
performance hit from increasing FUNC_MAX_ARGS.  Also tweak tuplesort.c
code for more speed by marking some routines 'inline'.  All together
these changes speed up simple sorts, like count(distinct int4column),
by about 25% on a P4 running RH Linux 7.2.

21 years agoAdd:
Bruce Momjian [Fri, 4 Oct 2002 02:28:42 +0000 (02:28 +0000)]
Add:

> * Add floor(float8) and other missing functions

21 years agoHack to make it possible to load CREATE CONSTRAINT TRIGGER commands that
Tom Lane [Thu, 3 Oct 2002 21:06:23 +0000 (21:06 +0000)]
Hack to make it possible to load CREATE CONSTRAINT TRIGGER commands that
are missing the FROM clause (due to a long-ago pg_dump bug).  Patch by
Stephan Szabo, minor tweaking by Tom Lane.

21 years agoAdd auto-vacuum emails.
Bruce Momjian [Thu, 3 Oct 2002 19:33:50 +0000 (19:33 +0000)]
Add auto-vacuum emails.

21 years agoAdd:
Bruce Momjian [Thu, 3 Oct 2002 19:32:43 +0000 (19:32 +0000)]
Add:

< * Provide automatic running of vacuum in the background (Tom)
> * Provide automatic running of vacuum in the background (Tom) [vacuum]

21 years agoAdd:
Bruce Momjian [Thu, 3 Oct 2002 19:20:25 +0000 (19:20 +0000)]
Add:

> * Check GUC geqo_threshold to see if it is still accurate

21 years agoIn a bootstrap process or standalone backend, set MaxBackends = 1
Tom Lane [Thu, 3 Oct 2002 19:19:09 +0000 (19:19 +0000)]
In a bootstrap process or standalone backend, set MaxBackends = 1
to avoid unnecessary consumption of semaphores.

21 years agoAvoid palloc(0) when MaxBackends = 1.
Tom Lane [Thu, 3 Oct 2002 19:17:55 +0000 (19:17 +0000)]
Avoid palloc(0) when MaxBackends = 1.

21 years agoRestore NOTICEs that were mistakenly removed from triggers regression
Tom Lane [Thu, 3 Oct 2002 18:40:02 +0000 (18:40 +0000)]
Restore NOTICEs that were mistakenly removed from triggers regression
test expected output.  Tweak contrib/spi Makefile so that refint.so is
by default built with appropriate NOTICE support for regression testing.

21 years agoAdd SSL documentation info to README.SSL
Bruce Momjian [Thu, 3 Oct 2002 17:26:14 +0000 (17:26 +0000)]
Add SSL documentation info to README.SSL

21 years agoIt's just a cosmetic change, fixes the help screen. Should be applied in
Bruce Momjian [Thu, 3 Oct 2002 17:20:39 +0000 (17:20 +0000)]
It's just a cosmetic change, fixes the help screen. Should be applied in
/contrib/vacuumlo

Mario Weilguni

21 years agoThis patch fixes a few grammatical errors, removes some duplicate
Bruce Momjian [Thu, 3 Oct 2002 17:17:42 +0000 (17:17 +0000)]
This patch fixes a few grammatical errors, removes some duplicate
entries, and attributes some JDBC changes to the right people.

Neil Conway

21 years agoThis is small README fix for contrib/intarray. Thank you.
Bruce Momjian [Thu, 3 Oct 2002 17:16:31 +0000 (17:16 +0000)]
This is small README fix for contrib/intarray. Thank you.

Teodor Sigaev

21 years agoThe attached adds a bit to the contrib/tablefunc regression test for
Bruce Momjian [Thu, 3 Oct 2002 17:15:36 +0000 (17:15 +0000)]
The attached adds a bit to the contrib/tablefunc regression test for
behavior of connectby() in the presence of infinite recursion. Please
apply this one in addition to the one sent earlier.

Joe Conway

21 years ago> The previous patch fixed an infinite recursion bug in
Bruce Momjian [Thu, 3 Oct 2002 17:11:12 +0000 (17:11 +0000)]
> The previous patch fixed an infinite recursion bug in
> contrib/tablefunc/tablefunc.c:connectby. But, other unmanageable error
> seems to occur even if a table has commonplace tree data(see below).
>
> I would think the patch, ancestor check, should be
>
>   if (strstr(branch_delim || branchstr->data || branch_delim,
>                        branch_delim || current_key || branch_delim))
>
> This is my image, not a real code. However, if branchstr->data includes
> branch_delim, my image will not be perfect.

Good point. Thank you Masaru for the suggested fix.

Attached is a patch to fix the bug found by Masaru. His example now
produces:

regression=# SELECT * FROM connectby('connectby_tree', 'keyid',
'parent_keyid', '11', 0, '-') AS t(keyid int, parent_keyid int, level
int,
branch text);
  keyid | parent_keyid | level |  branch

-------+--------------+-------+----------
     11 |              |     0 | 11
     10 |           11 |     1 | 11-10
    111 |           11 |     1 | 11-111
      1 |          111 |     2 | 11-111-1
(4 rows)

While making the patch I also realized that the "no show branch" form of
the  function was not going to work very well for recursion detection.
Therefore  there is now a default branch delimiter ('~') that is used
internally, for  that case, to enable recursion detection to work. If
you need a different  delimiter for your specific data, you will have to
use the "show branch" form  of the function.

Joe Conway

21 years agoThe attached patch fixes a number of issues related to compiling the
Bruce Momjian [Thu, 3 Oct 2002 17:09:42 +0000 (17:09 +0000)]
The attached patch fixes a number of issues related to compiling the
client
utilities (libpq.dll and psql.exe) for win32 (missing defines,
adjustments to
includes, pedantic casting, non-existent functions) per:
   http://developer.postgresql.org/docs/postgres/install-win32.html.

It compiles cleanly under Windows 2000 using Visual Studio .net. Also
compiles clean and passes all regression tests (regular and contrib)
under Linux.

In addition to a review by the usual suspects, it would be very
desirable for  someone well versed in the peculiarities of win32 to take
a look.

Joe Conway

21 years agoThis patch removes two unused global variables from globals.c
Bruce Momjian [Thu, 3 Oct 2002 17:07:53 +0000 (17:07 +0000)]
This patch removes two unused global variables from globals.c

Neil Conway

21 years agoAdd:
Bruce Momjian [Thu, 3 Oct 2002 16:39:02 +0000 (16:39 +0000)]
Add:

> * Add schema, cast, and conversion backslash commands to psql

21 years agoAdd wording so people know PANIC is really "off" for log_min_error_statement.
Bruce Momjian [Thu, 3 Oct 2002 02:26:49 +0000 (02:26 +0000)]
Add wording so people know PANIC is really "off" for log_min_error_statement.

21 years agoRe-enable pg_resetxlog to accept -l values in hexadecimal (it used to
Tom Lane [Wed, 2 Oct 2002 21:30:13 +0000 (21:30 +0000)]
Re-enable pg_resetxlog to accept -l values in hexadecimal (it used to
be able to do that, but the ability seems to have got lost in the
shuffle).  Add a -o nextOID switch for completeness.  Improve the
documentation to explain how and why to use these switches.

21 years agopg_resetxlog was missing support for the pg_control fields added in 7.3.
Tom Lane [Wed, 2 Oct 2002 19:45:47 +0000 (19:45 +0000)]
pg_resetxlog was missing support for the pg_control fields added in 7.3.

21 years agoAlter scale selection for NUMERIC division and transcendental functions
Tom Lane [Wed, 2 Oct 2002 19:21:26 +0000 (19:21 +0000)]
Alter scale selection for NUMERIC division and transcendental functions
so that precision of result is always at least as good as you'd get from
float8 arithmetic (ie, always at least 16 digits of accuracy).  Per
pg_hackers discussion a few days ago.

21 years agoTurn GUC log_min_error_statement off by default by setting it to PANIC.
Bruce Momjian [Wed, 2 Oct 2002 16:27:57 +0000 (16:27 +0000)]
Turn GUC log_min_error_statement off by default by setting it to PANIC.

21 years agotest files added by Kris Jurka
Dave Cramer [Tue, 1 Oct 2002 16:11:30 +0000 (16:11 +0000)]
test files added by Kris Jurka

21 years agoPass less-unsafe parameters to Darwin's NSLinkModule. While this change prevents...
Tom Lane [Tue, 1 Oct 2002 05:06:44 +0000 (05:06 +0000)]
Pass less-unsafe parameters to Darwin's NSLinkModule.  While this change prevents a backend coredump when loading a broken shlib, it also seems to suppress the error messages that might help debug the problem :-(.  Perhaps someone would like to supply a 'linkEdit' hook to get the best of both worlds.  But in the meantime, backend crash trumps error reporting.

21 years agoFixed test suite to call PoolingDataSourceTest which was missed
Barry Lind [Tue, 1 Oct 2002 04:36:00 +0000 (04:36 +0000)]
Fixed test suite to call PoolingDataSourceTest which was missed

 Modified Files:
  OptionalTestSuite.java

21 years agoApplied doc patch to jdbc doc which documents support for datasources
Barry Lind [Tue, 1 Oct 2002 04:09:13 +0000 (04:09 +0000)]
Applied doc patch to jdbc doc which documents support for datasources
patch submitted by ammulder@alumni.princeton.edu

 Modified Files:
  jdbc.sgml

21 years agoUpdate FAQ for 7.2.3 version.
Bruce Momjian [Tue, 1 Oct 2002 03:28:56 +0000 (03:28 +0000)]
Update FAQ for 7.2.3 version.

21 years agoUpdate HISTORY/release.sgml for 7.2.3.
Bruce Momjian [Tue, 1 Oct 2002 03:23:05 +0000 (03:23 +0000)]
Update HISTORY/release.sgml for 7.2.3.

21 years agoschema awareness patch provided by Kris Jurka
Dave Cramer [Tue, 1 Oct 2002 00:39:02 +0000 (00:39 +0000)]
schema awareness patch provided by Kris Jurka

21 years agoAdd Bear's SSL comments.
Bruce Momjian [Sun, 29 Sep 2002 04:06:54 +0000 (04:06 +0000)]
Add Bear's SSL comments.

21 years agoMake the world at least somewhat safe for zero-column tables, and
Tom Lane [Sat, 28 Sep 2002 20:00:19 +0000 (20:00 +0000)]
Make the world at least somewhat safe for zero-column tables, and
remove the special case in ALTER DROP COLUMN to prohibit dropping a
table's last column.

21 years agoARGH!
Tom Lane [Fri, 27 Sep 2002 20:57:08 +0000 (20:57 +0000)]
ARGH!

Vacuum must not advance pg_database.datvacuumxid nor truncate CLOG
unless it's processed *all* tables in the database.  Vacuums run by
unprivileged users don't count.

(Beats head against nearest convenient wall...)

21 years ago> Fix clusterdb to be schema-aware
Bruce Momjian [Fri, 27 Sep 2002 17:51:10 +0000 (17:51 +0000)]
> Fix clusterdb to be schema-aware

Please apply the patch attached and this should be solved.

Alvaro Herrera

21 years agoUse heap_formtuple not heap_addheader to construct pg_index tuples.
Tom Lane [Fri, 27 Sep 2002 15:05:23 +0000 (15:05 +0000)]
Use heap_formtuple not heap_addheader to construct pg_index tuples.
heap_addheader is wrong because it doesn't cope with varlena fields,
notably indpred.

21 years agoDon't mess with HEAP_XMAX_INVALID in heaptuple.c routines; there is
Tom Lane [Fri, 27 Sep 2002 15:04:08 +0000 (15:04 +0000)]
Don't mess with HEAP_XMAX_INVALID in heaptuple.c routines; there is
no reason to worry about the tuple commit status bits until the tuple
is inserted in a relation by heapam.c.  Also, improve comments for
heap_addheader().

21 years agoHave -d5 -d0 not affect the extra variables set with -d5.
Bruce Momjian [Fri, 27 Sep 2002 03:59:00 +0000 (03:59 +0000)]
Have -d5 -d0 not affect the extra variables set with -d5.

21 years agoMake postgres -d0 set server_min_messages to notice. Reset doesn't work
Bruce Momjian [Fri, 27 Sep 2002 03:34:15 +0000 (03:34 +0000)]
Make postgres -d0 set server_min_messages to notice.  Reset doesn't work
at this area in the code.

21 years agoSimplify SSL certificate instructions.
Bruce Momjian [Fri, 27 Sep 2002 02:04:39 +0000 (02:04 +0000)]
Simplify SSL certificate instructions.

21 years agoEnsure that before truncating CLOG, we force a checkpoint even if no
Tom Lane [Thu, 26 Sep 2002 22:58:34 +0000 (22:58 +0000)]
Ensure that before truncating CLOG, we force a checkpoint even if no
recent WAL activity has occurred.  Without this, it's possible that a
later crash might leave tuples on disk with un-updated commit status
bits.

21 years agoFix problems with loss of tuple commit status bits during WAL redo of
Tom Lane [Thu, 26 Sep 2002 22:46:29 +0000 (22:46 +0000)]
Fix problems with loss of tuple commit status bits during WAL redo of
VACUUM FULL tuple moves.  Store full-width t_infomask in WAL, rather
than storing low 8 bits and expecting to be able to reconstruct upper
bits.  While at it, remove redundant t_oid field from WAL headers
(the OID, if present, is now recorded in the data portion of the tuple).
WAL version number bumped --- this does not force an initdb, you can
instead run pg_resetxlog after a clean shutdown of the old postmaster.

21 years agoBack out /pl memory leak patch. Wait for new version.
Bruce Momjian [Thu, 26 Sep 2002 05:39:03 +0000 (05:39 +0000)]
Back out /pl memory leak patch.  Wait for new version.

21 years agoClean up SSL compiler warnings.
Bruce Momjian [Thu, 26 Sep 2002 05:37:58 +0000 (05:37 +0000)]
Clean up SSL compiler warnings.

21 years agoAttached is a patch to contrib/dbmirror that fixes a bug that was
Bruce Momjian [Thu, 26 Sep 2002 05:24:30 +0000 (05:24 +0000)]
Attached is a patch to contrib/dbmirror that fixes a bug that was
causing  the postmaster to crash when the trigger was running on a table
without a  primary key.

I've also updated the docs to explicitly say that tables need primary
keys.

Steven Singer

21 years agoI have attached the pltcl patch again, just in case. For the sake of clarity
Bruce Momjian [Thu, 26 Sep 2002 05:23:26 +0000 (05:23 +0000)]
I have attached the pltcl patch again, just in case. For the sake of clarity
let's say this patch superscedes the previous one.

I have also attached a patch addressing the similar memory leak problem in
plpython. This includes a slight adjustment of the tests in the source
directory. The patch also includes a cosmetic change to remove a compiler
warning although I think the change makes the code look worse though.

BTW, by my reckoning the memory leak would occur with prepared plans and
without. If that is not the case then I've been barking up the wrong tree.

Nigel J. Andrews

21 years agoThis patch removes a use of uninitialized memory in lmgr/lock.c, by
Bruce Momjian [Thu, 26 Sep 2002 05:18:30 +0000 (05:18 +0000)]
This patch removes a use of uninitialized memory in lmgr/lock.c, by
adding a missing sprintf().

Neil Conway

21 years agoPass postmaster -d down to the postgres backend to trigger special -d
Bruce Momjian [Thu, 26 Sep 2002 05:17:00 +0000 (05:17 +0000)]
Pass postmaster -d down to the postgres backend to trigger special -d
handling in the backend.

21 years agoAllow SSL to work withouth client-side certificate infrastructure.
Bruce Momjian [Thu, 26 Sep 2002 04:41:55 +0000 (04:41 +0000)]
Allow SSL to work withouth client-side certificate infrastructure.

21 years agoEnhance the description of user and database management. Reduce the
Peter Eisentraut [Wed, 25 Sep 2002 21:16:10 +0000 (21:16 +0000)]
Enhance the description of user and database management.  Reduce the
number of forward references in the admin guide.

21 years agoRemove ShutdownBufferPoolAccess exit callback, and do the work in
Tom Lane [Wed, 25 Sep 2002 20:31:40 +0000 (20:31 +0000)]
Remove ShutdownBufferPoolAccess exit callback, and do the work in
ProcKill instead, where we still have a PGPROC with which to wait on
LWLocks.  This fixes 'can't wait without a PROC structure' failures
occasionally seen during backend shutdown (I'm surprised they weren't
more frequent, actually).  Add an Assert() to LWLockAcquire to help
catch any similar mistakes in future.  Fix failure to update MyProcPid
for standalone backends and pgstat processes.

21 years agoShouldn't be here ...
Tom Lane [Wed, 25 Sep 2002 14:27:16 +0000 (14:27 +0000)]
Shouldn't be here ...

21 years agoStamp configure for beta2.
Bruce Momjian [Wed, 25 Sep 2002 13:23:15 +0000 (13:23 +0000)]
Stamp configure for beta2.

21 years agoInstall proper earthdistance file, regression passes.
Bruce Momjian [Wed, 25 Sep 2002 13:04:48 +0000 (13:04 +0000)]
Install proper earthdistance file, regression passes.

21 years agoApplied patch from Aaron Mulder (ammulder@alumni.princeton.edu) that fixes
Barry Lind [Wed, 25 Sep 2002 07:01:31 +0000 (07:01 +0000)]
Applied patch from Aaron Mulder (ammulder@alumni.princeton.edu) that fixes
jdbc datasource support for jdk1.4/jdbc3

 Modified Files:
  jdbc/build.xml jdbc/org/postgresql/Driver.java.in
  jdbc/org/postgresql/jdbc2/optional/BaseDataSource.java
  jdbc/org/postgresql/jdbc2/optional/PGObjectFactory.java
  jdbc/org/postgresql/jdbc2/optional/PooledConnectionImpl.java
  jdbc/org/postgresql/jdbc2/optional/PoolingDataSource.java
  jdbc/org/postgresql/test/jdbc2/optional/BaseDataSourceTest.java
  jdbc/org/postgresql/test/jdbc2/optional/OptionalTestSuite.java
  jdbc/org/postgresql/test/jdbc3/Jdbc3TestSuite.java
 Added Files:
  jdbc/org/postgresql/jdbc3/Jdbc3ConnectionPool.java
  jdbc/org/postgresql/jdbc3/Jdbc3ObjectFactory.java
  jdbc/org/postgresql/jdbc3/Jdbc3PooledConnection.java
  jdbc/org/postgresql/jdbc3/Jdbc3PoolingDataSource.java
  jdbc/org/postgresql/jdbc3/Jdbc3SimpleDataSource.java
  jdbc/org/postgresql/test/jdbc2/optional/PoolingDataSourceTest.java
  jdbc/org/postgresql/test/jdbc3/Jdbc3ConnectionPoolTest.java
  jdbc/org/postgresql/test/jdbc3/Jdbc3PoolingDataSourceTest.java
  jdbc/org/postgresql/test/jdbc3/Jdbc3SimpleDataSourceTest.java
  jdbc/org/postgresql/test/util/MiniJndiContext.java
  jdbc/org/postgresql/test/util/MiniJndiContextFactory.java

21 years agoAdd missing earthdistance regression test files.
Bruce Momjian [Wed, 25 Sep 2002 03:46:04 +0000 (03:46 +0000)]
Add missing earthdistance regression test files.

21 years agoMake PL/pgSQL capitalization consistent.
Bruce Momjian [Tue, 24 Sep 2002 23:37:42 +0000 (23:37 +0000)]
Make PL/pgSQL capitalization consistent.

21 years agoChange default privileges for languages and functions to be PUBLIC USAGE
Tom Lane [Tue, 24 Sep 2002 23:14:25 +0000 (23:14 +0000)]
Change default privileges for languages and functions to be PUBLIC USAGE
and PUBLIC EXECUTE, respectively.  Per discussion about easing updates
from prior versions.

21 years agoUpdate some obsolete comments and column descriptions.
Tom Lane [Tue, 24 Sep 2002 21:26:44 +0000 (21:26 +0000)]
Update some obsolete comments and column descriptions.

21 years agoRemove useless O_DIROPEN stuff.
Peter Eisentraut [Tue, 24 Sep 2002 20:20:10 +0000 (20:20 +0000)]
Remove useless O_DIROPEN stuff.

21 years agoTweak conversion names to follow the established naming scheme, and
Peter Eisentraut [Tue, 24 Sep 2002 20:14:59 +0000 (20:14 +0000)]
Tweak conversion names to follow the established naming scheme, and
document that scheme.

21 years agoAdd earthdistance regression file.
Bruce Momjian [Tue, 24 Sep 2002 20:09:33 +0000 (20:09 +0000)]
Add earthdistance regression file.

21 years agoAdd missing correction of sublevelsup when pulling up a subquery.
Tom Lane [Tue, 24 Sep 2002 18:38:23 +0000 (18:38 +0000)]
Add missing correction of sublevelsup when pulling up a subquery.
Fixes problem with cases like
SELECT * FROM foo t WHERE NOT EXISTS (SELECT remoteid FROM
(SELECT f1 as remoteid FROM foo WHERE f1 = t.f1) AS t1)

21 years agoFix broken markup.
Tom Lane [Mon, 23 Sep 2002 23:20:38 +0000 (23:20 +0000)]
Fix broken markup.

21 years agoFurther thinking about heap_mark4update: in HeapTupleSelfUpdated case,
Tom Lane [Mon, 23 Sep 2002 22:57:44 +0000 (22:57 +0000)]
Further thinking about heap_mark4update: in HeapTupleSelfUpdated case,
executor should not return the tuple as successfully marked, because in
fact it's been deleted.  Not clear that this case has ever been seen
in practice (I think you'd have to write a SELECT FOR UPDATE that calls
a function that deletes some row the SELECT will visit later...) but we
should be consistent.  Also add comments to several other places that
got it right but didn't explain what they were doing.

21 years agoMove PyGreSQL usage documentation from README into DocBook. Some other
Peter Eisentraut [Mon, 23 Sep 2002 21:10:13 +0000 (21:10 +0000)]
Move PyGreSQL usage documentation from README into DocBook.  Some other
editing.

21 years agoDisallow VACUUM, ANALYZE, TRUNCATE on temp tables belonging to other
Tom Lane [Mon, 23 Sep 2002 20:43:41 +0000 (20:43 +0000)]
Disallow VACUUM, ANALYZE, TRUNCATE on temp tables belonging to other
backends.  Given that temp tables now store data locally in the local
buffer manager, these things are not going to work safely.

21 years agoTweak dblink functions to use int4 arguments instead of int2,
Tom Lane [Mon, 23 Sep 2002 18:03:32 +0000 (18:03 +0000)]
Tweak dblink functions to use int4 arguments instead of int2,
to avoid having to write explicit casts.  From Joe Conway.

21 years agoAdd:
Bruce Momjian [Mon, 23 Sep 2002 14:52:28 +0000 (14:52 +0000)]
Add:

> * Add start time to pg_stat_activity

21 years agoUpdate HISTORY for 7.3beta2.
Bruce Momjian [Mon, 23 Sep 2002 05:25:38 +0000 (05:25 +0000)]
Update HISTORY for 7.3beta2.

21 years agoAdd win32 rename discussion to archives.
Bruce Momjian [Mon, 23 Sep 2002 01:59:40 +0000 (01:59 +0000)]
Add win32 rename discussion to archives.

21 years agoThe valid return value should be MODIFY instead of MODIFIED.
Bruce Momjian [Mon, 23 Sep 2002 01:51:02 +0000 (01:51 +0000)]
The valid return value should be MODIFY instead of MODIFIED.
The error message said so :-)

In 25.3. Using PL/Python

        If the trigger "when" is BEFORE, you may return None or "OK"
        from the Python function to indicate the tuple is unmodified, "SKIP"
        to abort the event, or "MODIFIED" to indicate you've modified the tuple.

should read
        If the trigger "when" is BEFORE, you may return None or "OK"
        from the Python function to indicate the tuple is unmodified, "SKIP"
        to abort the event, or "MODIFY" to indicate you've modified the tuple.

elein

21 years agoObviously noone has ever tested the doubling of availiable result ids
Bruce Momjian [Mon, 23 Sep 2002 01:43:23 +0000 (01:43 +0000)]
Obviously noone has ever tested the doubling of availiable result ids
up to
reaching the hard limit. After opening 16(=current REST_START value)
results via pg_exec, the next pg_exec tries to find an empty slot
forever :-( . In PgSetResultId file pgtclId.c in the for loop there
has to be done a break, if res_max ist reached. The piece of code
should look like
        if (resid == connid->res_max)
        {
            resid = 0;
            break;   /* the break as to be added */
        }

now everything works (double available results after reaching
RES_START up to reaching RES_HARD_MAX)

Gerhard Hintermayer

21 years agoNothing.
Bruce Momjian [Mon, 23 Sep 2002 01:39:05 +0000 (01:39 +0000)]
Nothing.

21 years agoGet rid of bogus use of heap_mark4update in reindex operations (cf.
Tom Lane [Mon, 23 Sep 2002 00:42:48 +0000 (00:42 +0000)]
Get rid of bogus use of heap_mark4update in reindex operations (cf.
recent bug report).  Fix processing of nailed-in-cache indexes;
it appears that REINDEX DATABASE has been broken for months :-(.

21 years agoIn UpdateStats(), don't bother to update the pg_class row if it already
Tom Lane [Sun, 22 Sep 2002 23:03:58 +0000 (23:03 +0000)]
In UpdateStats(), don't bother to update the pg_class row if it already
contains the correct statistics.  This is a partial solution for the
problem of allowing concurrent CREATE INDEX commands: unless they commit
at nearly the same instant, the second one will see the first one's
pg_class updates as committed, and won't try to update again, thus
avoiding the 'tuple concurrently updated' failure.

21 years agoRemove commas for compatibility with newer releases of bison.
Tom Lane [Sun, 22 Sep 2002 21:56:47 +0000 (21:56 +0000)]
Remove commas for compatibility with newer releases of bison.

21 years agoRemove commas for compatibility with newer bisons.
Tom Lane [Sun, 22 Sep 2002 21:54:31 +0000 (21:54 +0000)]
Remove commas for compatibility with newer bisons.