OSDN Git Service

pg-rex/syncrep.git
22 years agoAdjust rules for search_path so that pg_catalog is never implicitly
Tom Lane [Mon, 15 Apr 2002 22:33:21 +0000 (22:33 +0000)]
Adjust rules for search_path so that pg_catalog is never implicitly
selected as the creation target namespace; to make that happen, you
must explicitly set search_path that way.  This makes initdb a hair
more complex but seems like a good safety feature.

22 years agoUpdate as completed:
Bruce Momjian [Mon, 15 Apr 2002 20:52:12 +0000 (20:52 +0000)]
Update as completed:

> * -Allow oid to act as a foreign key

22 years agoFix text_substr bug intrduced in 7.3 development
Tatsuo Ishii [Mon, 15 Apr 2002 07:54:37 +0000 (07:54 +0000)]
Fix text_substr bug intrduced in 7.3 development
using Joe Conway's patches (submitted at pgsql-patches on 2002/04/08)
 + small fix.

22 years agoFix oversight in recent change of representation for JOIN alias
Tom Lane [Mon, 15 Apr 2002 06:05:49 +0000 (06:05 +0000)]
Fix oversight in recent change of representation for JOIN alias
variables: JOIN/ON should allow references to contained JOINs.
Per bug report from Barry Lind.

22 years agoThe contents of command.c, creatinh.c, define.c, remove.c and rename.c
Tom Lane [Mon, 15 Apr 2002 05:22:04 +0000 (05:22 +0000)]
The contents of command.c, creatinh.c, define.c, remove.c and rename.c
have been divided according to the type of object manipulated - so ALTER
TABLE code is in tablecmds.c, aggregate commands in aggregatecmds.c and
so on.

A few common support routines remain in define.c (prototypes in
src/include/commands/defrem.h).

No code has been changed except for includes to reflect the new files.
The prototypes for aggregatecmds.c, functioncmds.c, operatorcmds.c,
and typecmds.c remain in src/include/commands/defrem.h.

From John Gray <jgray@azuli.co.uk>

22 years ago1) Fix a bug about reporting varchar info thanks to Aceto.
Hiroshi Inoue [Mon, 15 Apr 2002 02:46:00 +0000 (02:46 +0000)]
1) Fix a bug about reporting varchar info thanks to Aceto.
2) Introcuced 3 drivers.
3) The version is now 7.02.0001.

22 years agoAdd bitmap email to archive.
Bruce Momjian [Sun, 14 Apr 2002 17:32:37 +0000 (17:32 +0000)]
Add bitmap email to archive.

22 years agoAllow detection of collateindex.pl in stylesheet directory or in path,
Peter Eisentraut [Sun, 14 Apr 2002 17:23:20 +0000 (17:23 +0000)]
Allow detection of collateindex.pl in stylesheet directory or in path,
which covers some recent installation schemes.

Add Mandrake installation layout to directories to check for stylesheets.

Allow documentation build to proceed if stylesheets were not found, in case
the stylesheets might be found through the SGML catalog mechanism.

22 years agoUpdate;
Bruce Momjian [Sun, 14 Apr 2002 17:20:35 +0000 (17:20 +0000)]
Update;

>    without using PL/PgSQL EXECUTE, needs cached plan invalidation

22 years agoFix comment dashes.
Bruce Momjian [Sun, 14 Apr 2002 16:47:16 +0000 (16:47 +0000)]
Fix comment dashes.

22 years ago- Synced preproc.y with gram.y
Michael Meskes [Sun, 14 Apr 2002 08:59:16 +0000 (08:59 +0000)]
- Synced preproc.y with gram.y
- Fixed one bug in structure handling resulting in using sizeof indicator instead of variable.

22 years agoFix broken SGML tag.
Tatsuo Ishii [Sun, 14 Apr 2002 01:31:37 +0000 (01:31 +0000)]
Fix broken SGML tag.

22 years agoRod's patch does what it is supposed to do, but it also includes
Bruce Momjian [Sat, 13 Apr 2002 19:57:18 +0000 (19:57 +0000)]
Rod's patch does what it is supposed to do, but it also includes
some old code to add PK constraints to CREATE TABLE. That stuff
had been removed as part of my original patch for pg_dump a
little while ago.

The attached patch fixes this by removing (again :-) ) the
code in dumpTables() to perform PK creation during CREATE
TABLE. I briefly tested it locally and it fixes both of
Tom's test cases.

Please apply.

Cheers,

Neil

--
Neil Conway <neilconway@rogers.com>

22 years agoPatch against 7.2.1 sources. Uses Solaris Intimate Shared Memory
Bruce Momjian [Sat, 13 Apr 2002 19:52:51 +0000 (19:52 +0000)]
Patch against 7.2.1 sources.  Uses Solaris Intimate Shared Memory
for Solaris on SPARC.  Scott Brunza (sbrunza@sonalysts.com) gets
credit for identifying the issue, making the change, and doing
the regression tests.

Earlier testing on 7.2rc2 and 7.2 showed performance gains of
1% to 10% on pgbench, osdb-pg, and some locally developed apps.

Solaris Intimate Shared Memory is described in "SOLARIS INTERNALS
Core Kernel Components" by Jim Mauro and Richard McDougall,
Copyright 2001 Sun Microsystem, Inc.  ISBN 0-13-022496-0

P.J. "Josh" Rovero

22 years agoUpdate/correct inheritance examples.
Tom Lane [Sat, 13 Apr 2002 17:17:29 +0000 (17:17 +0000)]
Update/correct inheritance examples.

22 years agoThis is a proposed patch to doc/src/sgml/libpgtcl.sgml which documents
Bruce Momjian [Sat, 13 Apr 2002 01:42:44 +0000 (01:42 +0000)]
This is a proposed patch to doc/src/sgml/libpgtcl.sgml which documents
the libpgtcl "pg_execute" command. This was mentioned on
pgsql-interfaces on Mar 3. I am posting it here in the hope that someone
will check to see if it makes sense and is correct SGML-wise.  I did run
it through jade, but this is my first try at this sort of thing.

ljb

22 years agoAdd:
Bruce Momjian [Sat, 13 Apr 2002 01:37:54 +0000 (01:37 +0000)]
Add:

> * Change NUMERIC to enforce the maximum precision, and increase it

22 years agoMention precision of NUMERIC in docs.
Bruce Momjian [Sat, 13 Apr 2002 01:35:09 +0000 (01:35 +0000)]
Mention precision of NUMERIC in docs.

22 years agoAdd:
Bruce Momjian [Sat, 13 Apr 2002 00:20:33 +0000 (00:20 +0000)]
Add:

> * Change NUMERIC data type to use base 10,000 internally

22 years agoChecking to decide whether relations are system relations now depends
Tom Lane [Fri, 12 Apr 2002 20:38:31 +0000 (20:38 +0000)]
Checking to decide whether relations are system relations now depends
on the namespace not the name; pg_ is not a reserved prefix for table
names anymore.  From Fernando Nasser.

22 years agoTweak error message wording.
Tom Lane [Fri, 12 Apr 2002 19:11:49 +0000 (19:11 +0000)]
Tweak error message wording.

22 years agoAllow prompting of create/drop user to handle spaces.
Bruce Momjian [Fri, 12 Apr 2002 09:42:32 +0000 (09:42 +0000)]
Allow prompting of create/drop user to handle spaces.

22 years agoAllow dropdb and others to use identifiers with spaces; IFS cleanup for
Bruce Momjian [Fri, 12 Apr 2002 09:37:11 +0000 (09:37 +0000)]
Allow dropdb and others to use identifiers with spaces;  IFS cleanup for
pg_dumpall.

22 years agoUpdate new Russian FAQ.
Bruce Momjian [Fri, 12 Apr 2002 09:17:10 +0000 (09:17 +0000)]
Update new Russian FAQ.

22 years ago1) Fix a bug in declare/fetch mode.
Hiroshi Inoue [Fri, 12 Apr 2002 08:03:12 +0000 (08:03 +0000)]
1) Fix a bug in declare/fetch mode.
2) Suppress some error logs for the request to other drivers.

22 years agoAdd mention of function CREATE INDEX usage.
Bruce Momjian [Thu, 11 Apr 2002 23:20:04 +0000 (23:20 +0000)]
Add mention of function CREATE INDEX usage.

22 years agoCleanup in use of IFS.
Bruce Momjian [Thu, 11 Apr 2002 21:22:27 +0000 (21:22 +0000)]
Cleanup in use of IFS.

22 years agoUpdate obsolete syntax in example of inheritance.
Tom Lane [Thu, 11 Apr 2002 21:18:50 +0000 (21:18 +0000)]
Update obsolete syntax in example of inheritance.

22 years agoMake sure leading/trailing/multiple consecutive space/tab in db/user/group
Bruce Momjian [Thu, 11 Apr 2002 21:16:28 +0000 (21:16 +0000)]
Make sure leading/trailing/multiple consecutive space/tab in db/user/group
names are handled OK.

22 years agoRestructure representation of aggregate functions so that they have pg_proc
Tom Lane [Thu, 11 Apr 2002 20:00:18 +0000 (20:00 +0000)]
Restructure representation of aggregate functions so that they have pg_proc
entries, per pghackers discussion.  This fixes aggregates to live in
namespaces, and also simplifies/speeds up lookup in parse_func.c.
Also, add a 'proimplicit' flag to pg_proc that controls whether a type
coercion function may be invoked implicitly, or only explicitly.  The
current settings of these flags are more permissive than I would like,
but we will need to debate and refine the behavior; for now, I avoided
breaking regression tests as much as I could.

22 years agoFix pg_upgrade to handle dbnames, user/group names with spaces.
Bruce Momjian [Thu, 11 Apr 2002 19:23:36 +0000 (19:23 +0000)]
Fix pg_upgrade to handle dbnames, user/group names with spaces.

22 years agoMake sure that usesuper is always accessed through superuser(), so that the
Peter Eisentraut [Thu, 11 Apr 2002 05:32:03 +0000 (05:32 +0000)]
Make sure that usesuper is always accessed through superuser(), so that the
single-user escape path always works.

22 years agoFix problem with invalid database name assignment in while loop.
Bruce Momjian [Thu, 11 Apr 2002 04:56:21 +0000 (04:56 +0000)]
Fix problem with invalid database name assignment in while loop.
Properly warn of invalid pg_dumpall options;  minor quoting cleanups.

22 years agoReadline and Zlib now required by default. Add options --without-readline
Peter Eisentraut [Wed, 10 Apr 2002 22:47:09 +0000 (22:47 +0000)]
Readline and Zlib now required by default.  Add options --without-readline
and --without-zlib to turn them off.

22 years agoAdd make install-strip target.
Peter Eisentraut [Wed, 10 Apr 2002 16:45:25 +0000 (16:45 +0000)]
Add make install-strip target.

22 years agoPrevent an infinite loop of error reporting.
Hiroshi Inoue [Wed, 10 Apr 2002 08:18:54 +0000 (08:18 +0000)]
Prevent an infinite loop of error reporting.

22 years agoFunctions live in namespaces. Qualified function names work, eg
Tom Lane [Tue, 9 Apr 2002 20:35:55 +0000 (20:35 +0000)]
Functions live in namespaces.  Qualified function names work, eg
SELECT schema1.func2(...).  Aggregate names can be qualified at the
syntactic level, but the qualification is ignored for the moment.

22 years agoUpdate pg_upgrade for 7.3.
Bruce Momjian [Tue, 9 Apr 2002 18:07:24 +0000 (18:07 +0000)]
Update pg_upgrade for 7.3.

22 years agoPoint to developers site, not my hostname.
Bruce Momjian [Tue, 9 Apr 2002 14:53:55 +0000 (14:53 +0000)]
Point to developers site, not my hostname.

22 years agoUpdate FAQ.
Bruce Momjian [Tue, 9 Apr 2002 14:22:34 +0000 (14:22 +0000)]
Update FAQ.

22 years agoUpdate:
Bruce Momjian [Tue, 9 Apr 2002 13:46:55 +0000 (13:46 +0000)]
Update:

>         o Fix PL/pgSQL RENAME to work on variables other than OLD/NEW

22 years agoRemove TODO.detail domain file.
Bruce Momjian [Tue, 9 Apr 2002 04:28:48 +0000 (04:28 +0000)]
Remove TODO.detail domain file.

22 years agoRemove TODO.detail domain file:
Bruce Momjian [Tue, 9 Apr 2002 04:28:17 +0000 (04:28 +0000)]
Remove TODO.detail domain file:

< * -Add domain capability [domain] (Rod Taylor)
> * -Add domain capability (Rod Taylor)

22 years agoAdded:
Bruce Momjian [Tue, 9 Apr 2002 04:14:47 +0000 (04:14 +0000)]
Added:

> * Add Intimate Shared Memory(ISM) for Solaris
> * Add documentation to lock shared memory into RAM for each OS, if possible

22 years agoLet psqlodbc30 be compilable without /D DRIVER_CURSOR_IMPLEMENT.
Hiroshi Inoue [Tue, 9 Apr 2002 03:58:33 +0000 (03:58 +0000)]
Let psqlodbc30 be compilable without /D DRIVER_CURSOR_IMPLEMENT.

22 years agoAdd:
Bruce Momjian [Tue, 9 Apr 2002 03:56:08 +0000 (03:56 +0000)]
Add:

>  o Fix PL/pgSQL RENAME to work on on variable names

22 years agoUpdate FAQ.
Bruce Momjian [Tue, 9 Apr 2002 03:22:11 +0000 (03:22 +0000)]
Update FAQ.

22 years agoMore cleanups of cursor text.
Bruce Momjian [Tue, 9 Apr 2002 03:08:25 +0000 (03:08 +0000)]
More cleanups of cursor text.

22 years agoFix markup problem with recent change.
Bruce Momjian [Tue, 9 Apr 2002 02:43:25 +0000 (02:43 +0000)]
Fix markup problem with recent change.

22 years agoUpdate refcursor documentation with examples of how to return pl/pgsql
Bruce Momjian [Tue, 9 Apr 2002 02:31:58 +0000 (02:31 +0000)]
Update refcursor documentation with examples of how to return pl/pgsql
refcursors.

22 years agoFix SGML markup problem.
Bruce Momjian [Tue, 9 Apr 2002 00:38:24 +0000 (00:38 +0000)]
Fix SGML markup problem.

22 years agoUpdate comment to clarify fetch limit and LIMIT.
Bruce Momjian [Mon, 8 Apr 2002 22:42:18 +0000 (22:42 +0000)]
Update comment to clarify fetch limit and LIMIT.

22 years agoDocument genbki.sh's ability to auto-assign OIDs for DESCR macros.
Tom Lane [Mon, 8 Apr 2002 22:09:05 +0000 (22:09 +0000)]
Document genbki.sh's ability to auto-assign OIDs for DESCR macros.
Some other minor wording improvements.

22 years agoDST-transition-sensitive tests seem to be in horology now, not
Tom Lane [Mon, 8 Apr 2002 04:37:36 +0000 (04:37 +0000)]
DST-transition-sensitive tests seem to be in horology now, not
timestamp.

22 years agoFix PQescapeBytea/PQunescapeBytea so that they handle bytes > 0x7f.
Tatsuo Ishii [Mon, 8 Apr 2002 03:48:10 +0000 (03:48 +0000)]
Fix PQescapeBytea/PQunescapeBytea so that they handle bytes > 0x7f.
This is necessary for mulibyte character sequences.
See "[HACKERS] PQescapeBytea is not multibyte aware" thread posted around
2002/04/05 for more details.

22 years agoAdd:
Bruce Momjian [Sun, 7 Apr 2002 01:59:17 +0000 (01:59 +0000)]
Add:

> * Abort SET changes made in aborted transactions

22 years agoImplement partial-key searching of syscaches, per recent suggestion
Tom Lane [Sat, 6 Apr 2002 06:59:25 +0000 (06:59 +0000)]
Implement partial-key searching of syscaches, per recent suggestion
to pghackers.  Use this to do searching for ambiguous functions ---
it will get more uses soon.

22 years agoUpdate Japanese FAQ.
Bruce Momjian [Sat, 6 Apr 2002 03:39:50 +0000 (03:39 +0000)]
Update Japanese FAQ.

Jun Kuwamura

22 years ago> > This patch corrects the use of rpath and export options when compiling
Bruce Momjian [Fri, 5 Apr 2002 12:01:59 +0000 (12:01 +0000)]
> > This patch corrects the use of rpath and export options when compiling
> > on postgres on Unixware with GCC built with gnu-as and gnu-ld.

Remove leading spaces in conditional tests in patch and Makefile.aix.

Nicolas Bazin

22 years agoThis patch adds a missing heap_freetuple() to renamerel(), documents
Bruce Momjian [Fri, 5 Apr 2002 11:58:24 +0000 (11:58 +0000)]
This patch adds a missing heap_freetuple() to renamerel(), documents
the decision not to make renamerel() update the sequence name that
is stored within sequences themselves (thanks to Tom Lane), and adds
some rudimentary regression tests for ALTER TABLE ... RENAME on
non-table relations.

Neil Conway

22 years agoMark as done:
Bruce Momjian [Fri, 5 Apr 2002 11:57:32 +0000 (11:57 +0000)]
Mark as done:

>  o -Allow INSERT INTO my_table VALUES (a, b, c, DEFAULT, x, y, z, ...)

22 years agoAdd INSERT(..., DEFAULT, ).
Bruce Momjian [Fri, 5 Apr 2002 11:56:55 +0000 (11:56 +0000)]
Add INSERT(..., DEFAULT, ).

Rod Taylor

22 years agoI was tinkering with creating rules on views (so, for instance, one could
Bruce Momjian [Fri, 5 Apr 2002 11:52:38 +0000 (11:52 +0000)]
I was tinkering with creating rules on views (so, for instance, one could
insert on a view), and noticed that psql wouldn't show the list of rules
set up on a view, like it does for tables.

The fix was extremely simple, so I figured I'd share it.  Not sure what
the standard is for communicating these things, so I've attached the diff
file for /src/bin/psql/describe.c.

Paul (?)

22 years agoAdds domain dumping support to pg_dump.
Bruce Momjian [Fri, 5 Apr 2002 11:51:13 +0000 (11:51 +0000)]
Adds domain dumping support to pg_dump.

Rod Taylor

22 years agoWhen a macro is replaced by the preprocessor, pgc.l reaches a end of
Bruce Momjian [Fri, 5 Apr 2002 11:39:47 +0000 (11:39 +0000)]
When a macro is replaced by the preprocessor, pgc.l reaches a end of
file, which is not the actual end of the file. One side effect of that
is that if you are i n a ifdef block, you get a wrong error telling you
that a endif is missing.

This patch corrects pgc.l and also adds a test of this problem to
test1.pgc. To  convince you apply the patch to test1.pgc first then try
to compile the test the n apply the patch to pgc.l.

The patch moves the test of the scope of an ifdef block to the end of
the file b eeing parsed, including all includes files, ... .

Nicolas Bazin

22 years agoLooks like a small patch is needed as well to do the right thing on Linux.
Bruce Momjian [Fri, 5 Apr 2002 11:38:13 +0000 (11:38 +0000)]
Looks like a small patch is needed as well to do the right thing on Linux.

The patch enables the mips2 ISA for the ll/sc operations, and then restores
it when done.  The kernel/libc emulation code will take over on CPUs without
ll/sc, and on CPUs with it, it'll use the operations provided by the CPU.

Combined with the earlier fix (removing -mips2), postgresql builds again on
mips and mipsel.  The patch is against 7.2-7.

Oliver Elphick

22 years agoUndo not-so-hot decision to postpone insertion of default values into
Tom Lane [Fri, 5 Apr 2002 05:47:05 +0000 (05:47 +0000)]
Undo not-so-hot decision to postpone insertion of default values into
INSERT statements to the planner.  Taking it out of the parser was right
(so that defaults don't get into stored rules), but it has to happen
before rewrite rule expansion, else references to NEW.field behave
incorrectly.  Accordingly, add a step to the rewriter to insert defaults
just before rewrite-rule expansion.

22 years agoMark as done:
Bruce Momjian [Fri, 5 Apr 2002 03:06:10 +0000 (03:06 +0000)]
Mark as done:

> * -Add new pg_proc cachable settings to specify whether function can be

22 years agoDivide functions into three volatility classes (immutable, stable, and
Tom Lane [Fri, 5 Apr 2002 00:31:36 +0000 (00:31 +0000)]
Divide functions into three volatility classes (immutable, stable, and
volatile), rather than the old cachable/noncachable distinction.  This
allows indexscan optimizations in many places where we formerly didn't.
Also, add a pronamespace column to pg_proc (it doesn't do anything yet,
however).

22 years agoFix a bug in SQLError().
Hiroshi Inoue [Thu, 4 Apr 2002 23:29:16 +0000 (23:29 +0000)]
Fix a bug in SQLError().

22 years agoDuplicate removed:
Bruce Momjian [Thu, 4 Apr 2002 07:12:36 +0000 (07:12 +0000)]
Duplicate removed:

<  o Allow cursors to be DECLAREd/OPENed/CLOSEed outside transactions

22 years agoMark as done:
Bruce Momjian [Thu, 4 Apr 2002 07:03:55 +0000 (07:03 +0000)]
Mark as done:

* -Allow user/group names to be specified directly in pg_hba.conf (Bruce)

22 years agoThis patch against 0.98.7 lib/tables.tcl will allow PGAccess to create new
Bruce Momjian [Thu, 4 Apr 2002 06:27:45 +0000 (06:27 +0000)]
This patch against 0.98.7 lib/tables.tcl will allow PGAccess to create new
records containing apostrophes in text fields without altering the appearance
of the entry in the GUI interface (by copying the fldval to fldvalfixed).

This will alleviate the need for users to create a record and then go back to
edit apostrophes into the text they entered.

Ryan Grange

22 years agoUpdate to new version of Oracle conversion utility, version 1.8.
Bruce Momjian [Thu, 4 Apr 2002 05:55:57 +0000 (05:55 +0000)]
Update to new version of Oracle conversion utility, version 1.8.

Gilles DAROLD

22 years agoCleanup of level ordering and add missing LOG entry.
Bruce Momjian [Thu, 4 Apr 2002 04:43:44 +0000 (04:43 +0000)]
Cleanup of level ordering and add missing LOG entry.

22 years agoAdd missing mention of 'log' option for client_min_messages.
Bruce Momjian [Thu, 4 Apr 2002 04:33:58 +0000 (04:33 +0000)]
Add missing mention of 'log' option for client_min_messages.

22 years agoAuthentication improvements:
Bruce Momjian [Thu, 4 Apr 2002 04:25:54 +0000 (04:25 +0000)]
Authentication improvements:

A new pg_hba.conf column, USER
Allow specifiction of lists of users separated by commas
Allow group names specified by +
Allow include files containing lists of users specified by @
Allow lists of databases, and database files
Allow samegroup in database column to match group name matching dbname
Removal of secondary password files
Remove pg_passwd utility
Lots of code cleanup in user.c and hba.c
New data/global/pg_pwd format
New data/global/pg_group file

22 years agoFix a bug in multibyte_strchr().
Hiroshi Inoue [Thu, 4 Apr 2002 01:36:17 +0000 (01:36 +0000)]
Fix a bug in multibyte_strchr().

22 years agoLocale support is on by default. The choice of locale is done in initdb
Peter Eisentraut [Wed, 3 Apr 2002 05:39:33 +0000 (05:39 +0000)]
Locale support is on by default.  The choice of locale is done in initdb
and/or with GUC variables.

22 years agoReplace perror() calls by elog()s, so that messages can be routed to
Tom Lane [Wed, 3 Apr 2002 00:44:27 +0000 (00:44 +0000)]
Replace perror() calls by elog()s, so that messages can be routed to
syslog when appropriate.  These were the last perror() calls remaining
in the backend; let's not reintroduce any...

22 years agoAllow postmaster to start up anyway when PGSTAT code fails to initialize,
Tom Lane [Wed, 3 Apr 2002 00:27:25 +0000 (00:27 +0000)]
Allow postmaster to start up anyway when PGSTAT code fails to initialize,
per recent discussion on pghackers.  Also, fix PGSTAT code to report
errors via elog, not scribbling directly on stderr.

22 years agoFix compiler warnings.
Hiroshi Inoue [Tue, 2 Apr 2002 10:57:25 +0000 (10:57 +0000)]
Fix compiler warnings.

22 years ago[HACKERS] Proposed patch for ODBC driver w/ C-a-n-c-e-l
Hiroshi Inoue [Tue, 2 Apr 2002 10:50:50 +0000 (10:50 +0000)]
[HACKERS] Proposed patch for ODBC driver w/ C-a-n-c-e-l
    From: Bradley McLean <brad@bradm.net>

Patch against 7,2 submitted for comment.

This seems to work just fine; Now, when our users submit a 2 hour
query with four million row sorts by accident, then cancel it 30 seconds
later, it doesn't bog down the server ...

22 years agoRemoved obsolete DROP_COLUMN_HACK stuff.
Hiroshi Inoue [Tue, 2 Apr 2002 08:51:52 +0000 (08:51 +0000)]
Removed obsolete DROP_COLUMN_HACK stuff.

22 years agoTweak SERIAL column creation to emit a fully qualified sequence name
Tom Lane [Tue, 2 Apr 2002 06:30:34 +0000 (06:30 +0000)]
Tweak SERIAL column creation to emit a fully qualified sequence name
as argument for nextval().

22 years agoRemoved error message that was incorectly being issued. This fixes a problem reporte...
Barry Lind [Tue, 2 Apr 2002 06:24:10 +0000 (06:24 +0000)]
Removed error message that was incorectly being issued.  This fixes a problem reported a few months ago where a select in a rule was causing an insert statement to return a result set which the code was explicitly prohibiting.

22 years agoFix CLOG truncation code to not do the Wrong Thing when there are already
Tom Lane [Tue, 2 Apr 2002 05:11:55 +0000 (05:11 +0000)]
Fix CLOG truncation code to not do the Wrong Thing when there are already
wrapped-around databases.  The unvacuumed databases might be fine, or
they might not, but things will definitely not be fine if we remove the
wrong CLOG segments.  Per trouble report from Gary Wolfe, 1-Apr-2002.

22 years agoFix contrib/dbsize for schema-qualified table names.
Tom Lane [Tue, 2 Apr 2002 01:17:28 +0000 (01:17 +0000)]
Fix contrib/dbsize for schema-qualified table names.

22 years agoMake VACUUM handle schema-qualified relation names properly.
Tom Lane [Tue, 2 Apr 2002 01:03:07 +0000 (01:03 +0000)]
Make VACUUM handle schema-qualified relation names properly.

22 years agoAdd tgconstrrelid to stored Trigger structures, make RI trigger functions
Tom Lane [Mon, 1 Apr 2002 22:36:13 +0000 (22:36 +0000)]
Add tgconstrrelid to stored Trigger structures, make RI trigger functions
depend on this rather than the trigger argument strings to locate the
other relation to test.  This makes RI triggers function properly in
the presence of schemas and temp tables.  Along the way, fix bogus lack
of locking in RI triggers, handle quoting of names fully correctly,
compute required sizes of query buffers with some semblance of accuracy.

22 years agoAttached is a patch which adds 2 missing semi-colons to
Bruce Momjian [Mon, 1 Apr 2002 14:22:41 +0000 (14:22 +0000)]
Attached is a patch which adds 2 missing semi-colons to
bootstrap/bootparse.y, so that recent versions of bison don't emit a
warning.

Neil Conway

22 years agoUpdate for SET/DROP NOT NULL.
Bruce Momjian [Mon, 1 Apr 2002 14:12:23 +0000 (14:12 +0000)]
Update for SET/DROP NOT NULL.

22 years agoALTER TABLE SET/DROP NOT NULL, from Christopher Kings-Lynne.
Tom Lane [Mon, 1 Apr 2002 04:35:40 +0000 (04:35 +0000)]
ALTER TABLE SET/DROP NOT NULL, from Christopher Kings-Lynne.

22 years agoCreate a new GUC variable search_path to control the namespace search
Tom Lane [Mon, 1 Apr 2002 03:34:27 +0000 (03:34 +0000)]
Create a new GUC variable search_path to control the namespace search
path.  The default behavior if no per-user schemas are created is that
all users share a 'public' namespace, thus providing behavior backwards
compatible with 7.2 and earlier releases.  Probably the semantics and
default setting will need to be fine-tuned, but this is a start.

22 years ago1) Add rollback functionality to updatable cursors.
Hiroshi Inoue [Mon, 1 Apr 2002 03:01:15 +0000 (03:01 +0000)]
1) Add rollback functionality to updatable cursors.
2) Implement some options for SQLGetDescField().
3) Handle *Inifinity* timestamp for SQL_C_CHAR type output.
4) Separate Unicode conversions from common implementations.
5) Improve internal parse_statement() function.

22 years agoTemporary kluge to let RI triggers work on tables outside the system
Tom Lane [Mon, 1 Apr 2002 02:02:34 +0000 (02:02 +0000)]
Temporary kluge to let RI triggers work on tables outside the system
catalog namespace.  This will not do as a production solution because
the interpretation of RI trigger arguments will vary depending on the
current namespace search path.  I'm just putting it in so that the RI
regression tests don't fail while schema development proceeds.  We
must find a better answer before 7.3 can be released.

22 years agoOops, not sure these are done.
Bruce Momjian [Mon, 1 Apr 2002 01:56:38 +0000 (01:56 +0000)]
Oops, not sure these are done.

> * Remove unreferenced table files and temp tables during database vacuum
> * Allow psql \d to show temporary table structure

22 years agoFix broken PG_VERSION_STR.
Tom Lane [Mon, 1 Apr 2002 01:11:00 +0000 (01:11 +0000)]
Fix broken PG_VERSION_STR.

22 years agoFixed now, I think:
Bruce Momjian [Sun, 31 Mar 2002 12:56:16 +0000 (12:56 +0000)]
Fixed now, I think:

> * -Remove unreferenced table files and temp tables during database vacuum
> * -Allow psql \d to show temporary table structure

22 years agoMake renamerel take an OID, not a RangeVar, to identify the relation
Tom Lane [Sun, 31 Mar 2002 07:49:30 +0000 (07:49 +0000)]
Make renamerel take an OID, not a RangeVar, to identify the relation
to rename.  Avoids some corner-case bugs in cluster.c, improves
consistency with renameatt.