Commit Graph

12444 Commits

Author SHA1 Message Date
Michael Meskes cc592ed8ea Fixed typo in preproc/type.h 2002-04-16 07:03:56 +00:00
Bruce Momjian 171824087c The patch I sent to -patches a little while ago wasn't applied: it
was in the thread "make BufferGetBlockNumber() a macro". Tom
objected to the original patch, so I prepared a new one which
doesn't change BufferGetBlockNumber() into a macro, it just
cleans up some comments and fixes an assertion. The patch
is attached.

Neil Conway
2002-04-15 23:47:12 +00:00
Bruce Momjian 33d1bb76c6 The attached patch corrects an inaccuracy in src/backend/catalog/README
and fixes a few spelling mistakes in src/bakckend/lmgr/README.

Neil Conway
2002-04-15 23:46:13 +00:00
Bruce Momjian bbae09c2cb CATALOG VERSION UPDATED:
The indexes on most system catalogs are named with the suffix "_index";
not so with TOAST table indexes, which use "_idx". This trivial patch
changes TOAST table index names to use the "_index" suffix for
consistency.

Neil Conway
2002-04-15 23:45:07 +00:00
Bruce Momjian 2036b3fc59 Disable VACUUM from being called from a function because function memory
would be cleared by vacuum;  fix idea from Tom Lane.
2002-04-15 23:39:42 +00:00
Bruce Momjian 5b92d004fa Fix for NOTIFY when NAMEDATALEN is nonstandard in server. Fix idea from
Tom Lane to move string storage to end of structure but keep pointer in
the same location.
2002-04-15 23:35:51 +00:00
Bruce Momjian 394eec1068 Fix for EINTR returns from Win9X socket operations:
In summary, if a software writer implements timer events or other events
 which generate a signal with a timing fast enough to occur while libpq
is inside connect(), then connect returns -EINTR.  The code following
the connect call does not handle this and generates an error message.
The sum result is that the pg_connect() fails.  If the timer or other
event is right on the window of the connect() completion time, the
pg_connect() may appear to work sporadically.  If the event is too slow,
 pg_connect() will appear to always work and if the event is too fast,
pg_connect() will always fail.

David Ford
2002-04-15 23:34:17 +00:00
Tom Lane b66cbc1fa2 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.
2002-04-15 22:33:21 +00:00
Bruce Momjian c2f1e93aeb Update as completed:
> * -Allow oid to act as a foreign key
2002-04-15 20:52:12 +00:00
Tatsuo Ishii c4e0c113b8 Fix text_substr bug intrduced in 7.3 development
using Joe Conway's patches (submitted at pgsql-patches on 2002/04/08)
 + small fix.
2002-04-15 07:54:37 +00:00
Tom Lane 3767970cbf 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.
2002-04-15 06:05:49 +00:00
Tom Lane 71dc300a37 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>
2002-04-15 05:22:04 +00:00
Hiroshi Inoue ab1ead6b97 1) Fix a bug about reporting varchar info thanks to Aceto.
2) Introcuced 3 drivers.
3) The version is now 7.02.0001.
2002-04-15 02:46:00 +00:00
Bruce Momjian 31e179379a Add bitmap email to archive. 2002-04-14 17:32:37 +00:00
Peter Eisentraut 2e32eca8d0 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.
2002-04-14 17:23:20 +00:00
Bruce Momjian 08479bcbca Update;
> 	  without using PL/PgSQL EXECUTE, needs cached plan invalidation
2002-04-14 17:20:35 +00:00
Bruce Momjian 872911bc41 Fix comment dashes. 2002-04-14 16:47:16 +00:00
Michael Meskes 70fb71f487 - Synced preproc.y with gram.y
- Fixed one bug in structure handling resulting in using sizeof indicator instead of variable.
2002-04-14 08:59:16 +00:00
Tatsuo Ishii 3cf2d9cc23 Fix broken SGML tag. 2002-04-14 01:31:37 +00:00
Bruce Momjian 7603c42edf 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>
2002-04-13 19:57:18 +00:00
Bruce Momjian b73859db8c 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
2002-04-13 19:52:51 +00:00
Tom Lane 291c875f23 Update/correct inheritance examples. 2002-04-13 17:17:29 +00:00
Bruce Momjian 6f2c0d47f8 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
2002-04-13 01:42:44 +00:00
Bruce Momjian 673788c692 Add:
> * Change NUMERIC to enforce the maximum precision, and increase it
2002-04-13 01:37:54 +00:00
Bruce Momjian e916ad28c7 Mention precision of NUMERIC in docs. 2002-04-13 01:35:09 +00:00
Bruce Momjian 6c19d67d5f Add:
> * Change NUMERIC data type to use base 10,000 internally
2002-04-13 00:20:33 +00:00
Tom Lane 9999f5a10e 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.
2002-04-12 20:38:31 +00:00
Tom Lane 79b60cb132 Tweak error message wording. 2002-04-12 19:11:49 +00:00
Bruce Momjian 0847fea6b9 Allow prompting of create/drop user to handle spaces. 2002-04-12 09:42:32 +00:00
Bruce Momjian 5804a7ce3e Allow dropdb and others to use identifiers with spaces; IFS cleanup for
pg_dumpall.
2002-04-12 09:37:11 +00:00
Bruce Momjian 5129e1bde6 Update new Russian FAQ. 2002-04-12 09:17:10 +00:00
Hiroshi Inoue 40eb5495c9 1) Fix a bug in declare/fetch mode.
2) Suppress some error logs for the request to other drivers.
2002-04-12 08:03:12 +00:00
Bruce Momjian 50b5d4bf76 Add mention of function CREATE INDEX usage. 2002-04-11 23:20:04 +00:00
Bruce Momjian 0c9790e616 Cleanup in use of IFS. 2002-04-11 21:22:27 +00:00
Tom Lane a521d5a25e Update obsolete syntax in example of inheritance. 2002-04-11 21:18:50 +00:00
Bruce Momjian 2dd06b0593 Make sure leading/trailing/multiple consecutive space/tab in db/user/group
names are handled OK.
2002-04-11 21:16:28 +00:00
Tom Lane 902a6a0a4b 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.
2002-04-11 20:00:18 +00:00
Bruce Momjian 3f6299df6c Fix pg_upgrade to handle dbnames, user/group names with spaces. 2002-04-11 19:23:36 +00:00
Peter Eisentraut 25f050d90d Make sure that usesuper is always accessed through superuser(), so that the
single-user escape path always works.
2002-04-11 05:32:03 +00:00
Bruce Momjian a62f43ae6e Fix problem with invalid database name assignment in while loop.
Properly warn of invalid pg_dumpall options;  minor quoting cleanups.
2002-04-11 04:56:21 +00:00
Peter Eisentraut 5c1f31d2d4 Readline and Zlib now required by default. Add options --without-readline
and --without-zlib to turn them off.
2002-04-10 22:47:09 +00:00
Peter Eisentraut 563673e15d Add make install-strip target. 2002-04-10 16:45:25 +00:00
Hiroshi Inoue b210b16265 Prevent an infinite loop of error reporting. 2002-04-10 08:18:54 +00:00
Tom Lane f2d70d32eb 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.
2002-04-09 20:35:55 +00:00
Bruce Momjian c419c22414 Update pg_upgrade for 7.3. 2002-04-09 18:07:24 +00:00
Bruce Momjian 7a48acbf3b Point to developers site, not my hostname. 2002-04-09 14:53:55 +00:00
Bruce Momjian fa9ee5d9ee Update FAQ. 2002-04-09 14:22:34 +00:00
Bruce Momjian 68747b4601 Update:
>         o Fix PL/pgSQL RENAME to work on variables other than OLD/NEW
2002-04-09 13:46:55 +00:00
Bruce Momjian b71189c243 Remove TODO.detail domain file. 2002-04-09 04:28:48 +00:00
Bruce Momjian 6d0a070b73 Remove TODO.detail domain file:
< * -Add domain capability [domain] (Rod Taylor)
> * -Add domain capability (Rod Taylor)
2002-04-09 04:28:17 +00:00