Commit Graph

3015 Commits

Author SHA1 Message Date
Peter Eisentraut
e8ac187c68 Allow functions to be executed with the privileges of the function owner.
I took the opportunity to remove the pg_proc.proistrusted field.
2002-05-18 13:48:01 +00:00
Peter Eisentraut
94bdc4855c Extend syntax of CREATE FUNCTION to resemble SQL99. 2002-05-17 18:32:52 +00:00
Tom Lane
f0811a74b3 Merge the last few variable.c configuration variables into the generic
GUC support.  It's now possible to set datestyle, timezone, and
client_encoding from postgresql.conf and per-database or per-user
settings.  Also, implement rollback of SET commands that occur in a
transaction that later fails.  Create a SET LOCAL var = value syntax
that sets the variable only for the duration of the current transaction.
All per previous discussions in pghackers.
2002-05-17 01:19:19 +00:00
Tom Lane
fa613fa1ea Fix obsolete statement about permissions on COPY ref page, and confusion
about TO/FROM direction in several places.
2002-05-14 18:47:58 +00:00
Peter Eisentraut
5c4e5aa3ff Make regression tests locale-proof by setting some locale categories
to C at run-time, and providing alternative output files for different
sort orders.
2002-05-14 13:05:43 +00:00
Tom Lane
c5741a448e AVG probably shouldn't be upper case here, considering
that we don't upcase the others.
2002-05-13 19:22:06 +00:00
Tom Lane
f69bc37be8 Make operators have their own comments separate from those of the
underlying function; but cause psql's \do to show the underlying
function's comment if the operator has no comment of its own, to preserve
the useful functionality of the original behavior.  Also, implement
COMMENT ON SCHEMA.  Patch from Rod Taylor.
2002-05-13 17:45:30 +00:00
Tom Lane
71009354c8 Update for additional options in CREATE OPERATOR. 2002-05-11 02:09:41 +00:00
Tom Lane
9f0ae0c820 First pass at schema-fying pg_dump/pg_restore. Much to do still,
but the basic capability seems to work.
2002-05-10 22:36:27 +00:00
Peter Eisentraut
1944bff1d6 Make initdb print a message about which locale it is about to use.
Re-add warning if the locale prevents LIKE-optimization.  Done within
initdb now.
2002-05-09 13:30:24 +00:00
Tom Lane
2822788993 Accept SET SESSION AUTHORIZATION DEFAULT and RESET SESSION AUTHORIZATION
to reset session userid to the originally-authenticated name.  Also,
relax SET SESSION AUTHORIZATION to allow specifying one's own username
even if one is not superuser, so as to avoid unnecessary error messages
when loading a pg_dump file that uses this command.  Per discussion from
several months ago.
2002-05-06 19:47:30 +00:00
Tom Lane
8338cc03a8 Remove the last traces of datatypes datetime and timespan. 2002-05-03 04:11:08 +00:00
Tom Lane
e4f06dc12e Clean up loose ends remaining from schema privileges discussion.
I concluded that RENAME should require CREATE privilege on the namespace
as well as ownership of the table.
2002-04-30 01:26:26 +00:00
Tom Lane
857661ba2e Enforce EXECUTE privilege for aggregate functions. 2002-04-29 22:28:19 +00:00
Bruce Momjian
c763cfa9e8 Add Polish FAQ from Marcin Mazurek. 2002-04-29 02:57:18 +00:00
Bruce Momjian
aafe72efb2 Update DROP COLUMN example to use transactions and rollback-able DROP TABLE> 2002-04-27 03:04:08 +00:00
Bruce Momjian
e90dbd27b1 Updated:
> 	o Abort all SET changes made in an aborted transaction
2002-04-26 18:32:44 +00:00
Tom Lane
a309032d2f Add current_schema() and current_schemas() inquiry functions.
Update has_table_privilege functions to cope with schema-qualified
names in the same way as nextval() and others.
2002-04-26 01:24:08 +00:00
Tom Lane
d9375ad564 Add a reference page for CREATE SCHEMA. 2002-04-25 21:47:07 +00:00
Bruce Momjian
be004a0c09 Added:
> * Allow backslash handling in quoted strings to be disabled for portability
2002-04-25 20:39:11 +00:00
Bruce Momjian
8cec968784 Improve display of headings in HTML. 2002-04-25 20:20:50 +00:00
Tom Lane
e358a61d76 Updates for schema features. 2002-04-25 20:14:43 +00:00
Tom Lane
52200befd0 Implement types regprocedure, regoper, regoperator, regclass, regtype
per pghackers discussion.  Add some more typsanity tests, and clean
up some problems exposed thereby (broken or missing array types for
some built-in types).  Also, clean up loose ends from unknownin/out
patch.
2002-04-25 02:56:56 +00:00
Bruce Momjian
f20d467e6b Add missing SGML file. 2002-04-24 02:53:13 +00:00
Bruce Momjian
a02f83426b Here's a doc patch for ALTER TRIGGER RENAME. Please apply if there are
no objections.

Joe Conway
2002-04-24 02:49:50 +00:00
Bruce Momjian
19b31e0713 Oops, wrong commit on previous. It was:
The attached patch allows views to have default values. You can't
specify a default value within a CREATE VIEW statement, it must be
done using ALTER TABLE ... ALTER COLUMN ... SET DEFAULT after the
view has already been created. Most of the hard work was done by
Tom Lane, I just patched pg_dump and updated the documentation.

Neil Conway <neilconway@rogers.com>
2002-04-24 02:40:45 +00:00
Bruce Momjian
9fcc1159be Appears I forgot to update the docs earlier.
Please note I have no way to test this.  Docbook doesn't like my
cygwin setup.

--
Rod Taylor
2002-04-24 02:31:30 +00:00
Bruce Momjian
695a042532 Add item:
> * Improve ability to display optimizer analysis using OPTIMIZER_DEBUG
2002-04-23 20:26:29 +00:00
Bruce Momjian
c11d9353f1 Update as done:
> * -Use faster flex flags for performance improvement (Peter E)
2002-04-23 18:59:30 +00:00
Bruce Momjian
0666ac296b Update for syslog and name Tom in trigger:
> * -Allow user to control trigger firing order (Tom)
> * -Compile in syslog functionaility by default (Tatsuo)
2002-04-23 16:59:51 +00:00
Bruce Momjian
44cd58e47e Update:
> * -Allow user to control trigger firing order
> * Add ALTER TRIGGER ... RENAME
2002-04-23 16:56:24 +00:00
Tom Lane
0c1fe3d2b9 Update SQL-command reference pages for schema features. 2002-04-23 02:07:16 +00:00
Tom Lane
fccda9eb90 Update GRANT example and discussion to match current sources. 2002-04-22 19:17:40 +00:00
Thomas G. Lockhart
c05f29e895 Augment the date/time examples in the User's Guide to reflect the newer
capabilities of specifying time zones as intervals per SQL9x.
Put refentrytitle contents on the same line as the tag.
 Otherwise, leading whitespace is propagated into the product, which
 (at least) messes up the ToC layout.
Remove (some) docinfo tags containing dates. Best to omit if the dates
 are not accurate; maybe use CVS dates instead or leave them out.
2002-04-21 19:02:39 +00:00
Thomas G. Lockhart
b76b6f61b0 Minor wording change for readability. 2002-04-21 18:58:00 +00:00
Tom Lane
b0bcf8aab2 Restructure AclItem representation so that we can have more than eight
different privilege bits (might as well make use of the space we were
wasting on padding).  EXECUTE and USAGE bits for procedures, languages
now are separate privileges instead of being overlaid on SELECT.  Add
privileges for namespaces and databases.  The GRANT and REVOKE commands
work for these object types, but we don't actually enforce the privileges
yet...
2002-04-21 00:26:44 +00:00
Tom Lane
6d6ca2166c Change naming rule for ON SELECT rules of views: they're all just
_RETURN now, since there's no need to keep 'em unique anymore.
2002-04-19 23:13:54 +00:00
Tom Lane
201737168c pg_trigger's index on tgrelid is replaced by a unique index on
(tgrelid, tgname).  This provides an additional check on trigger name
uniqueness per-table (which was already enforced by the code anyway).
With this change, RelationBuildTriggers will read the triggers in
order by tgname, since it's scanning using this index.  Since a
predictable trigger ordering has been requested for some time, document
this behavior as a feature.  Also document that rules fire in name
order, since yesterday's changes to pg_rewrite indexing cause that too.
2002-04-19 16:36:08 +00:00
Tom Lane
b3120804ad Rule names are now unique per-relation, rather than unique globally.
DROP RULE and COMMENT ON RULE syntax adds an 'ON tablename' clause,
similar to TRIGGER syntaxes.  To allow loading of existing pg_dump
files containing COMMENT ON RULE, the COMMENT code will still accept
the old syntax --- but only if the target rulename is unique across
the whole database.
2002-04-18 20:01:11 +00:00
Bruce Momjian
4e08a625b0 Suggest another possible solution for funcs using temp tables:
< 	  without using PL/PgSQL EXECUTE, needs cached plan invalidation
> 	  without using PL/PgSQL EXECUTE, needs cache prevention/invalidation
2002-04-18 17:26:03 +00:00
Bruce Momjian
979be308d1 More neutral:
> 	o Abort all, some or, no SET changes made in an aborted transaction
2002-04-18 17:24:47 +00:00
Bruce Momjian
953287768e Update:
> 	o Abort all or commit all SET changes made in an aborted transaction
2002-04-18 14:32:36 +00:00
Bruce Momjian
f8c77a089c Correct documention of lo_unlink return value as int, not Oid. 2002-04-18 14:28:14 +00:00
Bruce Momjian
a44a0a4509 Update:
> 	o Allow Java server-side programming, http://pljava.sourceforge.net
> 	  [java]
2002-04-18 05:07:38 +00:00
Bruce Momjian
bebe5acaf9 Add how to get database/user listing information. 2002-04-18 04:45:11 +00:00
Bruce Momjian
cfa72faf96 Add user:
> * Rod is Rod Taylor <rbt@zort.ca>
2002-04-18 04:21:43 +00:00
Bruce Momjian
654fe4f998 Add to DROP COLUMN. 2002-04-18 04:17:41 +00:00
Bruce Momjian
69cd5efb23 Add to PREPARE archive. 2002-04-18 04:13:00 +00:00
Bruce Momjian
b09f67bca1 Update for Neil:
> * Cache most recent query plan(s) (Neil) [prepare]
> * Neil is Neil Conway <nconway@klamath.dyndns.org>
2002-04-18 04:08:22 +00:00
Bruce Momjian
bac714b72a Update for Oleg:
>   using a sequential scan for highest/lowest values (Oleg)
2002-04-18 04:07:04 +00:00
Bruce Momjian
f1b7e8416a Add:
Add to DROP COLUMN description.
2002-04-18 04:02:10 +00:00
Bruce Momjian
54f91c9f8a Update:
> 	o Abort SET changes made in aborted transactions (?)
2002-04-18 03:59:46 +00:00
Bruce Momjian
3cd9399d86 Change docs to do 20! rather than larger. 2002-04-18 03:37:13 +00:00
Bruce Momjian
af03e2edc9 Updated:
> * Add BETWEEN ASYMMETRIC/SYMMETRIC (Christopher)
> * Christopher is Christopher Kings-Lynne <chriskl@familyhealth.com.au>
2002-04-18 03:10:29 +00:00
Bruce Momjian
389ca3500d Add:
> * Add BSD-licensed qsort() for Solaris
2002-04-18 03:07:16 +00:00
Bruce Momjian
6abfa8c540 Add:
> 	o Allow SHOW to output as a query result, like EXPLAIN
2002-04-18 03:04:04 +00:00
Bruce Momjian
b2ef38e883 Add mention of -DLINUX_PROFILE to profile mention. 2002-04-18 02:48:19 +00:00
Bruce Momjian
afd8067213 Add:
> * Try flex flags -Cf and -CF to see if performance improves
2002-04-18 01:41:23 +00:00
Bruce Momjian
ed20cdfc53 Add:
> * Add utility to compute accurate random_page_cost value
2002-04-17 21:52:57 +00:00
Tom Lane
27a54ae282 Opclasses live in namespaces. I also took the opportunity to create
an 'opclass owner' column in pg_opclass.  Nothing is done with it at
present, but since there are plans to invent a CREATE OPERATOR CLASS
command soon, we'll probably want DROP OPERATOR CLASS too, which
suggests that a notion of ownership would be a good idea.
2002-04-17 20:57:57 +00:00
Bruce Momjian
d85a81cbc3 Add:
> * Allow easy display of usernames in a group
2002-04-17 20:35:23 +00:00
Bruce Momjian
d4963d7342 Add SQL92 document name. 2002-04-17 05:12:39 +00:00
Bruce Momjian
bef0ea574c Update to point directly to ANSI store. 2002-04-17 05:10:09 +00:00
Bruce Momjian
f417bbfb92 Add mention of standards documents. 2002-04-17 05:00:01 +00:00
Bruce Momjian
ff200d9359 Add steps for typical patch. 2002-04-17 02:10:22 +00:00
Tom Lane
6cef5d2549 Operators live in namespaces. CREATE/DROP/COMMENT ON OPERATOR take
qualified operator names directly, for example CREATE OPERATOR myschema.+
( ... ).  To qualify an operator name in an expression you need to write
OPERATOR(myschema.+) (thanks to Peter for suggesting an escape hatch).
I also took advantage of having to reformat pg_operator to fix something
that'd been bugging me for a while: mergejoinable operators should have
explicit links to the associated cross-data-type comparison operators,
rather than hardwiring an assumption that they are named < and >.
2002-04-16 23:08:12 +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
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
Tatsuo Ishii
3cf2d9cc23 Fix broken SGML tag. 2002-04-14 01:31:37 +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
Bruce Momjian
5129e1bde6 Update new Russian FAQ. 2002-04-12 09:17:10 +00:00
Bruce Momjian
50b5d4bf76 Add mention of function CREATE INDEX usage. 2002-04-11 23:20:04 +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
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
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
Bruce Momjian
20f8aab215 Added:
> * Add Intimate Shared Memory(ISM) for Solaris
> * Add documentation to lock shared memory into RAM for each OS, if possible
2002-04-09 04:14:47 +00:00
Bruce Momjian
eb953c3200 Add:
> 	o Fix PL/pgSQL RENAME to work on on variable names
2002-04-09 03:56:08 +00:00
Bruce Momjian
2aeebfc64e Update FAQ. 2002-04-09 03:22:11 +00:00
Bruce Momjian
0325149a53 More cleanups of cursor text. 2002-04-09 03:08:25 +00:00
Bruce Momjian
0a3ccafffe Fix markup problem with recent change. 2002-04-09 02:43:25 +00:00
Bruce Momjian
663aabaa6e Update refcursor documentation with examples of how to return pl/pgsql
refcursors.
2002-04-09 02:31:58 +00:00
Bruce Momjian
308d50cdea Fix SGML markup problem. 2002-04-09 00:38:24 +00:00
Tom Lane
1dc789bac5 DST-transition-sensitive tests seem to be in horology now, not
timestamp.
2002-04-08 04:37:36 +00:00
Bruce Momjian
1dd58c61f7 Add:
> * Abort SET changes made in aborted transactions
2002-04-07 01:59:17 +00:00
Bruce Momjian
707cf12f1b Update Japanese FAQ.
Jun Kuwamura
2002-04-06 03:39:50 +00:00
Bruce Momjian
00f4a7d3c3 Mark as done:
> 	o -Allow INSERT INTO my_table VALUES (a, b, c, DEFAULT, x, y, z, ...)
2002-04-05 11:57:32 +00:00
Bruce Momjian
c9d70e2608 Mark as done:
> * -Add new pg_proc cachable settings to specify whether function can be
2002-04-05 03:06:10 +00:00
Tom Lane
4bdb4be62e 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).
2002-04-05 00:31:36 +00:00