Commit Graph

2308 Commits

Author SHA1 Message Date
Thomas G. Lockhart
17ce9a0a1e Split list of SQL99 features into "Supported" and "Unsupported" lists. 2002-06-19 06:11:36 +00:00
Bruce Momjian
f91ee129a7 Simplify optional WITH handling in CREATE USER, ALTER USER, CREATE
GROUP.  Make WITH optional in CREATE DATABASE for consistency.
2002-06-17 05:40:32 +00:00
Bruce Momjian
0dbfea39f3 Remove KSQO from GUC and move file to _deadcode. 2002-06-16 00:09:12 +00:00
Tom Lane
62d4526114 Ooops, fix busted markup. 2002-06-15 22:15:03 +00:00
Tom Lane
2da3742cf5 Add a little more material to the new section about evaluation order. 2002-06-15 21:28:55 +00:00
Bruce Momjian
eb1ad5b4b5 Patch for current_schemas to optionally include implicit ...
Second cut attached. This one just adds a boolean option to the existing
function to indicate that implicit schemas are to be included (or not).
I remembered the docs as well this time :-)

Dave Page
2002-06-15 20:03:51 +00:00
Bruce Momjian
82b14b62ca Update LOG_PID to mention it doesn't control syslog.
Oliver Elphick
2002-06-15 19:58:53 +00:00
Bruce Momjian
7882179994 The normal operation of our servers is to have tcpip_sockets enabled,
but occasionally I may need to shut down the server and restart it
w/o tcpip sockets. Postmaster has the -i option to turn on tcpip
connections, but it wasn't immediately clear how to easily or
temporarily turn it off (when it's been enabled in postgresql.conf).

In fact, it wasn't clear to me until digging in to postmaster.c that
I could pass '-c tcpip_socket=false' or '--tcpip_socket=false'.
(And then of course when I looked more closely at the man page I
realized I'd missed the proper part of the documentation.) What I'd
been looking for is a flag that would have the opposite effect of
'-i', and it's conceivable that others will be looking for specific
flags to do the opposite of '-F' and '-S'.

I was preparing to add options to postmaster until I realized that
maybe the solution is just to add some documentation.

If you'd rather have 1 character options to accomplish this, I'd be
happy to do that-- adding those 9 lines of code is definitely within
my ability. :)  (Although, the "right" letter to be the opposite of -S
isn't clear to me, since -s is already taken.)

Ron Snyder.
2002-06-15 19:52:56 +00:00
Bruce Momjian
eeb1dd5068 On Wed, 2002-05-29 at 01:41, Tom Lane wrote:
>
> > Is it a good idea to provide an example (such as the above), or should I
> > just try and describe the behaviour?
>
> Examples are generally good things ...

OK, the attached documentation patch provides some simple examples of
use of tablename as a parameter, %ROWTYPE and %TYPE.

In the end I decided that the documentation is literally correct, but
hard to follow without any examples explicitly showing the use of a
table name as a parameter.

Andrew McMillan
2002-06-15 19:34:51 +00:00
Thomas G. Lockhart
133df7ce70 Add LOCALTIME and LOCALTIMESTAMP functions per SQL99 standard.
Remove ODBC-compatible empty parentheses from calls to SQL99 functions
 for which these parentheses do not match the standard.
Update the ODBC driver to ensure compatibility with the ODBC standard
 for these functions (e.g. CURRENT_TIMESTAMP, CURRENT_USER, etc).
Include a new appendix in the User's Guide which lists the labeled features
 for SQL99 (the labeled features replaced the "basic", "intermediate",
 and "advanced" categories from SQL92). features.sgml does not yet split
 this list into "supported" and "unsupported" lists.
2002-06-15 03:00:09 +00:00
Thomas G. Lockhart
e62660080c Add NetBSD/MIPS as a supported platform. 2002-06-15 02:41:56 +00:00
Bruce Momjian
63a354c4bb Make encryption of stored passwords the default, as discussed months ago. 2002-06-15 01:29:50 +00:00
Bruce Momjian
9310caf589 Update for new SGML file. 2002-06-13 05:54:00 +00:00
Bruce Momjian
2d237c7c18 Move disk usage section into its own section. 2002-06-13 05:15:22 +00:00
Bruce Momjian
5612949ff8 Add section on showing disk usage. 2002-06-13 04:36:50 +00:00
Thomas G. Lockhart
062d8b9ebd Fix markup typo. 2002-06-11 16:00:17 +00:00
Thomas G. Lockhart
ea01a451cc Implement SQL99 OVERLAY(). Allows substitution of a substring in a string.
Implement SQL99 SIMILAR TO as a synonym for our existing operator "~".
Implement SQL99 regular expression SUBSTRING(string FROM pat FOR escape).
 Extend the definition to make the FOR clause optional.
 Define textregexsubstr() to actually implement this feature.
Update the regression test to include these new string features.
 All tests pass.
Rename the regular expression support routines from "pg95_xxx" to "pg_xxx".
Define CREATE CHARACTER SET in the parser per SQL99. No implementation yet.
2002-06-11 15:44:38 +00:00
Thomas G. Lockhart
090dd22de6 Implement SQL99 OVERLAY(). Allows substitution of a substring in a string.
Implement SQL99 SIMILAR TO as a synonym for our existing operator "~".
Implement SQL99 regular expression SUBSTRING(string FROM pat FOR escape).
 Extend the definition to make the FOR clause optional.
 Define textregexsubstr() to actually implement this feature.
Update the regression test to include these new string features.
 All tests pass.
Rename the regular expression support routines from "pg95_xxx" to "pg_xxx".
Define CREATE CHARACTER SET in the parser per SQL99. No implementation yet.
2002-06-11 15:32:33 +00:00
Bruce Momjian
3b993acf19 Fix link. 2002-06-11 10:36:16 +00:00
Bruce Momjian
3a9f82bf78 Update performance section. 2002-06-11 10:29:54 +00:00
Bruce Momjian
8d1c1d40ec Update fsync FAQ item. 2002-06-11 02:22:41 +00:00
Bruce Momjian
c86fac2787 Fix link. 2002-06-10 20:45:07 +00:00
Bruce Momjian
fc53730c94 Move ruler to separate sections. 2002-06-10 19:49:59 +00:00
Bruce Momjian
9aac62305b Add item for plpgsql temp table access. 2002-06-10 19:47:57 +00:00
Bruce Momjian
6146200219 Update new Russian FAQ, from Victor Vislobokov 2002-06-08 04:23:45 +00:00
Bruce Momjian
448ca1fe0b Update Japanese FAQ, from Jun Kuwamura 2002-06-04 05:12:21 +00:00
Bruce Momjian
e301b855d1 The attached patch fixes a typo in the documentation for SET
CONSTRAINTS.

Neil Conway <neilconway@rogers.com>
2002-06-03 01:10:38 +00:00
Bruce Momjian
85af3be5e2 Remove mention of timestamp() in SGML docs; doesn't exist anymore. 2002-06-02 21:56:09 +00:00
Peter Eisentraut
bf886d5baf Add section explaining unspecified expression evaluation order. 2002-06-01 20:56:55 +00:00
Peter Eisentraut
1731048c12 Indent verbatim environments. 2002-06-01 20:56:00 +00:00
Tom Lane
606db06f83 Improve manual's discussion of locking and MVCC. 2002-05-30 20:45:18 +00:00
Tom Lane
970ff81e2f Add a note about the interpretation of amcanmulticol and amindexnulls:
a multicolumn-capable index AM *must* support nulls in index columns
after the first one.
2002-05-29 17:36:40 +00:00
Peter Eisentraut
d60f10b0e7 Add optional "validator" function to languages that can validate the
function body (and other properties) as a function in the language
is created.  This generalizes ad hoc code that already existed for
the built-in languages.

The validation now happens after the pg_proc tuple of the new function
is created, so it is possible to define recursive SQL functions.

Add some regression test cases that cover bogus function definition
attempts.
2002-05-22 17:21:02 +00:00
Peter Eisentraut
2c50f6344b Revise command completion tags as per hackers message on 20 March. 2002-05-18 15:44:48 +00:00
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
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
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
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
f8c77a089c Correct documention of lo_unlink return value as int, not Oid. 2002-04-18 14:28:14 +00:00
Bruce Momjian
bebe5acaf9 Add how to get database/user listing information. 2002-04-18 04:45:11 +00:00
Bruce Momjian
3cd9399d86 Change docs to do 20! rather than larger. 2002-04-18 03:37:13 +00:00
Bruce Momjian
b2ef38e883 Add mention of -DLINUX_PROFILE to profile mention. 2002-04-18 02:48:19 +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
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
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
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
e916ad28c7 Mention precision of NUMERIC in docs. 2002-04-13 01:35:09 +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
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
707cf12f1b Update Japanese FAQ.
Jun Kuwamura
2002-04-06 03:39:50 +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
Bruce Momjian
43a3543a4e 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
2002-04-04 04:25:54 +00:00
Peter Eisentraut
867901db9e Locale support is on by default. The choice of locale is done in initdb
and/or with GUC variables.
2002-04-03 05:39:33 +00:00
Tom Lane
789ddcb5fe 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.
2002-04-01 22:36:13 +00:00
Tom Lane
9b77f61930 ALTER TABLE SET/DROP NOT NULL, from Christopher Kings-Lynne. 2002-04-01 04:35:40 +00:00
Tom Lane
838fe25a95 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.
2002-04-01 03:34:27 +00:00
Tom Lane
d5e99ab4d6 pg_type has a typnamespace column; system now supports creating types
in different namespaces.  Also, cleanup work on relation namespace
support: drop, alter, rename commands work for tables in non-default
namespaces.
2002-03-29 19:06:29 +00:00
Peter Eisentraut
e6774dc355 Don't mark up as acronym that which is not an acronym. 2002-03-27 19:19:23 +00:00
Peter Eisentraut
e68eb63e8c Improve spelling of lock names, and some other editing. 2002-03-27 02:36:51 +00:00
Tom Lane
1dbf8aa7a8 pg_class has a relnamespace column. You can create and access tables
in schemas other than the system namespace; however, there's no search
path yet, and not all operations work yet on tables outside the system
namespace.
2002-03-26 19:17:02 +00:00
Bruce Momjian
eb32be62d4 New wording:
Allow EXECUTE of "CREATE TABLE AS ... SELECT" in PL/PgSQL (Tom)
2002-03-25 21:24:08 +00:00
Bruce Momjian
7fe9e19842 Add to HISTORY:
Allow CREATE TABLE AS ... SELECT in PL/PgSQL (Tom)
2002-03-25 20:58:05 +00:00
Tom Lane
ea10ec1b69 Tweak labeling of plan qual conditions for more consistency. 2002-03-24 17:11:37 +00:00
Tom Lane
7100cbc1c4 Fix cut-and-paste-o. 2002-03-24 16:57:29 +00:00
Tom Lane
10d3995057 EXPLAIN output now comes out as a query result, not a NOTICE message.
Also, fix debug logging of parse/plan trees so that the messages actually
go through elog(), not directly to stdout.
2002-03-24 04:31:09 +00:00
Tom Lane
a25b94c080 Create the pg_namespace system catalog. Doesn't do much yet, but it's
there and CREATE SCHEMA will make entries in it...
2002-03-22 21:34:44 +00:00
Peter Eisentraut
b6ea172ace Spell checking and markup additions 2002-03-22 19:20:45 +00:00
Tom Lane
95ef6a3448 First phase of SCHEMA changes, concentrating on fixing the grammar and
the parsetree representation.  As yet we don't *do* anything with schema
names, just drop 'em on the floor; but you can enter schema-compatible
command syntax, and there's even a primitive CREATE SCHEMA command.
No doc updates yet, except to note that you can now extract a field
from a function-returning-row's result with (foo(...)).fieldname.
2002-03-21 16:02:16 +00:00
Tom Lane
337b22cb47 Code review for DOMAIN patch. 2002-03-20 19:45:13 +00:00
Tom Lane
f1f222843e Put back development status section overwritten by Bruce. 2002-03-19 18:53:01 +00:00
Bruce Momjian
14d542bc67 > > Users of contrib/tsearch needs after upgrading of module (compiling, installing)
> > to perform sql command:
> >  update pg_amop set amopreqcheck = true where amopclaid =
> >       (select oid from pg_opclass where opcname = 'gist_txtidx_ops');
>
> Oleg, sorry, I don't understand where this should appear.  In the README
> file, and if so, where?  Is this something only for people upgrading
> from 7.2?

Sorry Bruce, I was unclear. I have attached patch to Readme.tsearch
Also, It'd be worth to mention in Changes to point users of tsearch
about importang upgrade notices.

Oleg Bartunov
2002-03-19 14:15:55 +00:00
Bruce Momjian
a7ade2bb6b Add psql \dD listing of domains, from Jonathan Eisler. 2002-03-19 02:32:21 +00:00
Bruce Momjian
d3788c3305 Add DOMAIN support. Includes manual pages and regression tests, from
Rod Taylor.
2002-03-19 02:18:25 +00:00
Bruce Momjian
367856d912 Improve wording of bug fix:
Ensure that sequence counters do not go backwards after a crash
2002-03-19 00:12:09 +00:00
Bruce Momjian
658371fe9f Update for 7.2.1. 2002-03-18 23:03:13 +00:00
Bruce Momjian
b6cb03c7ce Update FAQ. 2002-03-18 19:35:10 +00:00
Tom Lane
8a25ec84e1 Improve documentation about array I/O representation. 2002-03-17 19:59:57 +00:00
Bruce Momjian
0b73fe14f1 Back out EXCEPT/DIFFERENCE patch. Seems I forgot the details of this. 2002-03-15 16:16:31 +00:00
Bruce Momjian
5c1dc0280e Fix for docs from Patrick Welche:
! 	DIFFERENCE (&minus; or &setmn;): builds the set difference of
  	two tables. Let <classname>R</classname> and
<classname>S</classname>
again be two tables with the same
  	arity. <classname>R</classname> - <classname>S</classname>
--- 488,494 ----

        <listitem>
        <para>
! 	EXCEPT (&minus; or &setmn;): builds the set difference of
2002-03-15 15:55:58 +00:00
Bruce Momjian
0d2842468c Mention time() and interval() are also changed in 7.2. 2002-03-11 16:41:44 +00:00
Peter Eisentraut
d0d3ab5325 Fix markup 2002-03-11 05:03:52 +00:00
Peter Eisentraut
414550f438 Uppercase class selectors, to work with browsers that follow the standards. 2002-03-11 05:02:04 +00:00
Bruce Momjian
ee27436f6c Disable brackets in multi-statement rules, as discussed. 2002-03-10 06:00:15 +00:00
Bruce Momjian
fdcb8516d4 Wording improvements to runtime.sgml. Add mention in postgresql.conf
file that SIGHUP or "pg_ctl reload" are required for changes to take
affect on a running server.
2002-03-09 05:11:38 +00:00
Bruce Momjian
b976b8af80 Back out domain patch until it works properly. 2002-03-07 16:35:41 +00:00
Bruce Momjian
62e6eb9bf7 alter table doc cleanups.
Neil Conway
2002-03-06 20:42:38 +00:00
Bruce Momjian
01c76f7411 Ok. Updated patch attached.
- domain.patch -> source patch against pgsql in cvs
- drop_domain.sgml and create_domain.sgml -> New doc/src/sgml/ref docs

- dominfo.txt -> basic domain related queries I used for testing
[ ADDED TO /doc]

Enables domains of array elements -> CREATE DOMAIN dom int4[3][2];

Uses a typbasetype column to describe the origin of the domain.

Copies data to attnotnull rather than processing in execMain().

Some documentation differences from earlier.

If this is approved, I'll start working on pg_dump, and a \dD <domain>
option in psql, and regression tests.  I don't really feel like doing
those until the system table structure settles for pg_type.


CHECKS when added, will also be copied to to the table attributes.  FK
Constraints (if I ever figure out how) will be done similarly.  Both
will lbe handled by MergeDomainAttributes() which is called shortly
before MergeAttributes().

Rod Taylor
2002-03-06 20:35:02 +00:00
Bruce Momjian
ade0fe5cb4 Update docs for new stored procedure error levels. 2002-03-06 19:05:58 +00:00
Bruce Momjian
3c0d21a28e Update reference pages for new INFO, NOTICE, WARNING elog() levels. 2002-03-06 06:48:05 +00:00
Bruce Momjian
92b1ab75d4 Update docs for new INFO, NOTICE, WARNING elog() levels. 2002-03-06 06:44:33 +00:00
Bruce Momjian
afc732e610 Update FAQ. 2002-03-05 06:28:26 +00:00
Bruce Momjian
590102c20b This version has been synchonized with English version at Mar 03.
With best wishes,Victor Vislobokov
Perm, Russia
2002-03-05 06:20:51 +00:00
Bruce Momjian
7bf7b0bd75 This trivial patch fixes a typo and improves the phrasing of a sentence
in the docs.

Neil Conway
2002-03-05 06:14:45 +00:00
Bruce Momjian
a8bd7e1c6e > Tatsuo Ishii wrote:
> > > > It was made to cope with encoding such as an Asian bloc in 7.2Beta2.
> > > >
> > > > Added ServerEncoding
> > > >         Korean (JOHAB), Thai (WIN874),
> > > >         Vietnamese (TCVN), Arabic (WIN1256)
> > > >
> > > > Added ClientEncoding
> > > >         Simplified Chinese (GBK), Korean (UHC)
> > > >
> > > >
> > > >
> http://www.sankyo-unyu.co.jp/Pool/postgresql-7.2b2.newencoding.diff.tar.gz
> > > > (608K)
> > >
> > > Looks good.  I need some people to review this for me.
> >
> > For me they look good too. The only missing part is a
> > documentation. I will ask him to write it up. If he couldn't, I will
> > do it for him.
> > > The diff is 3mb
> > > but appears to address only additions to multibyte.  I have attached a
> > > list of files it modifies.  Also, look at the sizes of the mb/
> > > directory.  It is getting large:
> > >
> > >   4       ./CVS
> > >   6       ./Unicode/CVS
> > >   3433    ./Unicode
> > >   6197    .
> >
> > Yes. We definitely need the on-the-fly encoding addition capability:
> > i.e. CREATE CHRACTER SET in the future...
> > --
> > Tatsuo Ishii
> >
> >

Address chainge.

http://www.sankyo-unyu.co.jp/Pool/postgresql-7.2.newencoding.diff.gz

Add PsqlODBC and document ...etc patch.

Eiji Tokuya
2002-03-05 05:52:50 +00:00
Bruce Momjian
03194432de I attach a version of my toast-slicing patch, against current CVS
(current as of a few hours ago.)

This patch:

1. Adds PG_GETARG_xxx_P_SLICE() macros and associated support routines.

2. Adds routines in src/backend/access/tuptoaster.c for fetching only
necessary chunks of a toasted value. (Modelled on latest changes to
assume chunks are returned in order).

3. Amends text_substr and bytea_substr to use new methods. It now
handles multibyte cases -and should still lead to a performance
improvement in the multibyte case where the substring is near the
beginning of the string.

4. Added new command: ALTER TABLE tabname ALTER COLUMN colname SET
STORAGE {PLAIN | EXTERNAL | EXTENDED | MAIN} to parser and documented in
alter-table.sgml. (NB I used ColId as the item type for the storage
mode string, rather than a new production - I hope this makes sense!).
All this does is sets attstorage for the specified column.

4. AlterTableAlterColumnStatistics is now AlterTableAlterColumnFlags and
handles both statistics and storage (it uses the subtype code to
distinguish). The previous version of my patch also re-arranged other
code in backend/commands/command.c but I have dropped that from this
patch.(I plan to return to it separately).

5. Documented new macros (and also the PG_GETARG_xxx_P_COPY macros) in
xfunc.sgml. ref/alter_table.sgml also contains documentation for ALTER
COLUMN SET STORAGE.

John Gray
2002-03-05 05:33:31 +00:00
Bruce Momjian
25b0b09fd3 Add \timing patch to psql. Times all queries.
Greg Sabino Mullane
2002-03-05 00:01:03 +00:00
Bruce Momjian
294f0d4bd6 Add PQunescapeBytea libpq function.
Everyone using libpq and bytea is probably having to invent this wheel..

Patrick Welche
2002-03-04 23:59:14 +00:00
Bruce Momjian
b2aade0e4b Improve libpgeasy API for multiple result sets, add example. 2002-03-04 18:50:21 +00:00
Bruce Momjian
5ab02fd123 Update FAQ. 2002-03-03 18:35:46 +00:00
Bruce Momjian
592caa0897 Update FAQ. 2002-03-03 16:02:31 +00:00
Bruce Momjian
a033daf566 Commit to match discussed elog() changes. Only update is that LOG is
now just below FATAL in server_min_messages.  Added more text to
highlight ordering difference between it and client_min_messages.

---------------------------------------------------------------------------

REALLYFATAL => PANIC
STOP => PANIC
New INFO level the prints to client by default
New LOG level the prints to server log by default
Cause VACUUM information to print only to the client
NOTICE => INFO where purely information messages are sent
DEBUG => LOG for purely server status messages
DEBUG removed, kept as backward compatible
DEBUG5, DEBUG4, DEBUG3, DEBUG2, DEBUG1 added
DebugLvl removed in favor of new DEBUG[1-5] symbols
New server_min_messages GUC parameter with values:
        DEBUG[5-1], INFO, NOTICE, ERROR, LOG, FATAL, PANIC
New client_min_messages GUC parameter with values:
        DEBUG[5-1], LOG, INFO, NOTICE, ERROR, FATAL, PANIC
Server startup now logged with LOG instead of DEBUG
Remove debug_level GUC parameter
elog() numbers now start at 10
Add test to print error message if older elog() values are passed to elog()
Bootstrap mode now has a -d that requires an argument, like postmaster
2002-03-02 21:39:36 +00:00
Peter Eisentraut
1aac2c852a User and database-specific session defaults for run-time configuration
variables.  New commands ALTER DATABASE ... SET and ALTER USER ... SET.
2002-03-01 22:45:19 +00:00
Bruce Momjian
ed6986d3eb Revert quotes, 7.2 doesn't need them for CREATE FUNCTION. 2002-03-01 20:38:12 +00:00
Bruce Momjian
a7ac26b759 Oops, we didn't have single quotes around 'langname' in CREATE FUNCTION
manual page;  pointed out by IRC user.
2002-03-01 19:01:22 +00:00
Peter Eisentraut
36addaff3d Some cleanups in CREATE/ALTER/DROP USER ref pages. 2002-02-27 21:14:54 +00:00
Bruce Momjian
e22c9c4475 Update FAQ. 2002-02-27 04:52:19 +00:00
Tom Lane
f71dc6d0e2 Correct typo noticed by Christopher Kings-Lynne. 2002-02-26 15:59:08 +00:00
Bruce Momjian
c0cbb261df Update FAQ_DEV. 2002-02-25 20:29:39 +00:00
Bruce Momjian
2673547c9e Update FAQ. 2002-02-25 20:29:22 +00:00
Bruce Momjian
eb54314bb7 Re-add equals documentation with CREATE DATABASE. 2002-02-25 03:37:14 +00:00
Bruce Momjian
95ec9ff2f7 Remove documentation of equals in CREATE DATABASE. Mention removal of
equals hack for the future.
2002-02-25 02:53:46 +00:00
Tom Lane
e43e20cef1 Fix copy-and-paste typo. 2002-02-24 23:55:31 +00:00
Tom Lane
75e5e20d0e Add -O/--owner switch to createdb script, in support of new OWNER option
for CREATE DATABASE.
2002-02-24 23:27:58 +00:00
Tom Lane
a833c441fd Add OWNER option to CREATE DATABASE, so superusers can create databases
on behalf of unprivileged users.  Also, make '=' optional in CREATE
DATABASE syntax.  From Gavin Sherry, with kibitzing and docs by Tom Lane.
2002-02-24 20:20:21 +00:00
Bruce Momjian
9b3a6b5ec3 Update FAQ_DEV. 2002-02-23 20:09:40 +00:00
Peter Eisentraut
42c3381fc7 Heimdal support (Kerberos V implementation from KTH) 2002-02-23 04:17:47 +00:00
Bruce Momjian
68d835c550 Add Russian FAQ from Viktor Vislobokov. 2002-02-22 12:48:55 +00:00
Bruce Momjian
926990b24b Update FAQ. 2002-02-21 22:56:16 +00:00
Bruce Momjian
e3e41a648d Small spacing cleanup. 2002-02-21 22:42:04 +00:00
Bruce Momjian
3a95427d42 Wrap some SQL syntax examples so \h shows them better. 2002-02-21 22:39:36 +00:00
Bruce Momjian
5db2b6e11d Update FAQ. 2002-02-21 22:19:30 +00:00
Bruce Momjian
77d2aa0613 Update FAQ. 2002-02-21 20:15:00 +00:00
Bruce Momjian
7e1de695fe Update FAQ. 2002-02-21 20:13:39 +00:00
Peter Eisentraut
8adf56f77a Privileges on functions and procedural languages 2002-02-18 23:11:58 +00:00
Peter Eisentraut
5e03503126 Set version to 7.3devel. 2002-02-18 21:46:17 +00:00
Tom Lane
c89e0d9666 Minor copy-editing. 2002-02-18 16:13:10 +00:00
Bruce Momjian
fbcc0d69e8 Fix param handling of create* admin scripts as described months ago.
Properly handles default values.
2002-02-18 05:48:45 +00:00
Bruce Momjian
865d26fdd6 Update FAQ. 2002-02-18 05:09:01 +00:00
Bruce Momjian
62feef6c95 Fix SGML typo in previous patch. 2002-02-17 13:29:00 +00:00
Bruce Momjian
bf4507e3af I think it's important that it's actually documented that they can add
primary keys after the fact!

Also, we need to add regression tests for alter table / add primary key
and alter table / drop constraint.  These shouldn't be added until 7.3
tho
methinks...

Chris
2002-02-17 11:50:09 +00:00
Bruce Momjian
a966ac1df0 Clarify params to ALTER TABLE to clearly show single parameters.
e.g. table contraint definition -> table_constraint_definition.
2002-02-16 23:45:48 +00:00
Bruce Momjian
ceec779ab5 Update FAQ. 2002-02-14 17:15:00 +00:00
Tom Lane
1392042346 Point out that --adduser actually makes the new user a superuser. This
was mentioned on the man page for the underlying CREATE USER command,
but it should be explained here too.
2002-02-13 19:32:17 +00:00
Bruce Momjian
28108b391b Fix tutorial for references problem, from rainer.tammer@spg.schulergroup.com 2002-02-12 22:25:15 +00:00
Tom Lane
9832a235c5 Modify COPY TO to emit carriage returns and newlines as backslash escapes
(backslash-r, backslash-n) for protection against newline-conversion
munging.  In future we will also tweak COPY FROM, but this part of the
change should be backwards-compatible.  Per pghackers discussion.
Also, update COPY reference page to describe the backslash conversions
more completely and accurately.
2002-02-12 21:25:41 +00:00
Bruce Momjian
c16ef167df Update FAQ. 2002-02-12 17:18:10 +00:00
Bruce Momjian
d39a369912 Update FAQ. 2002-02-12 17:14:55 +00:00
Bruce Momjian
0ae55405de Update wal files computation documentation. 2002-02-11 23:25:14 +00:00
Tom Lane
906254a53c pg_dump and pg_restore man pages need to mention that one should restore
into a virgin database, ie, one created from template0, if there are any
site-local additions in template1.
2002-02-11 00:14:10 +00:00
Bruce Momjian
03296fc980 Update FAQ. 2002-02-02 21:46:45 +00:00
Bruce Momjian
c47723d368 Update FAQ. 2002-02-02 20:34:33 +00:00
Bruce Momjian
4a6f109802 Update for 7.2:
This fixes references to 7.1.3 (I think).  It also
modifies the japanese
FAQ, so I'm not sure if that's done correctly.

Chris
2002-02-02 20:34:16 +00:00
Bruce Momjian
b1c8de4908 Update FAQ_DEV. 2002-02-01 20:28:32 +00:00
Bruce Momjian
1b6aa29a05 Consistend spelling for PL/pgSQL 2002-01-31 21:20:03 +00:00
Bruce Momjian
c69c25ba4d Update HISTORY/release.sgml for Monday release. 2002-01-31 18:31:44 +00:00
Peter Eisentraut
14d3c645b3 Don't put empty paragraphs around tables. This messed up JadeTeX somehow,
and doesn't make sense strictly speaking.
2002-01-30 21:55:33 +00:00
Peter Eisentraut
64024d1091 Remove Jade/TeX hack, now that OpenJade 1.3.1 has it fixed. 2002-01-30 21:54:17 +00:00
Peter Eisentraut
089e8f959e Fix copy-and-paste bug in print style. 2002-01-30 21:53:40 +00:00
Tom Lane
c4bab5f29b Overhaul plperl documentation. 2002-01-25 19:13:15 +00:00
Bruce Momjian
38c971f496 Fix +/- mixup pointed out by Rod Taylor. 2002-01-25 02:39:28 +00:00
Tom Lane
db42e32a74 Fix documentation misstatement: OLD is not valid in ON SELECT. 2002-01-24 18:28:15 +00:00
Tom Lane
cf77a2a034 Overhaul PL/Tcl documentation. 2002-01-23 21:08:17 +00:00
Bruce Momjian
859a9eb468 Update FAQ. 2002-01-22 20:24:14 +00:00
Peter Eisentraut
bf43bed848 Spell-check and markup police 2002-01-20 22:19:57 +00:00
Tom Lane
75f0ba9fe3 Mention that 'make distclean' is a good idea when changing configure
options.  Document --with-pam and --enable-depend, do some minor
copy-editing.
2002-01-20 05:45:18 +00:00
Bruce Momjian
0c8429ca31 Add missing literal endtag. 2002-01-18 21:17:07 +00:00
Bruce Momjian
a724463c8a Improve non-thread-safe mention of libpq's crypt. 2002-01-18 20:39:04 +00:00
Bruce Momjian
9600ccad13 Improve description of autocommit behavior in ecpg manual pages. 2002-01-18 20:32:54 +00:00
Tom Lane
1d174c3086 Explain privileges required for LOCK. Minor wordsmithing too. 2002-01-18 01:05:43 +00:00
Tom Lane
9ad737978d Point out that superusers bypass privilege checking. Minor wordsmithing. 2002-01-18 01:04:53 +00:00
Tom Lane
7e1d82040e pg_upgrade doesn't live here anymore. Remove dangling references. 2002-01-15 05:05:49 +00:00
Bruce Momjian
92a8bc9634 Move pg_upgrade to /contrib. Still need to make Peter's portability
changes.
2002-01-14 17:32:07 +00:00
Bruce Momjian
5b2ebe95e9 Wow, it actually worked for the regression database. More testing needed. 2002-01-13 01:13:59 +00:00
Bruce Momjian
c6fdf8bcfc More man pages improvements; also needed to test sgml build. 2002-01-11 20:48:47 +00:00
Bruce Momjian
3bb77555b1 Sync up. 2002-01-11 20:34:14 +00:00
Bruce Momjian
ba3231a2a0 More cleanups. 2002-01-11 06:08:02 +00:00
Bruce Momjian
6bd45e5264 Handle int4-int8 sequence migration without full data dump. 2002-01-11 04:39:19 +00:00
Bruce Momjian
8ae53160da Update FAQ. 2002-01-10 23:41:49 +00:00
Bruce Momjian
e6aa4584ca Update FAQ. 2002-01-10 23:35:20 +00:00
Bruce Momjian
b010afe0dd Update FAQ. 2002-01-10 23:35:19 +00:00
Bruce Momjian
d356ec9a01 Update FAQ. 2002-01-10 23:34:14 +00:00
Bruce Momjian
775a61009e Update FAQ. 2002-01-10 23:33:35 +00:00
Bruce Momjian
e19d7b7b95 Update FAQ. 2002-01-10 23:07:07 +00:00
Peter Eisentraut
0385ba1121 Temporary workaround for links within bibliography references fouling up
footnote count.
2002-01-10 18:22:44 +00:00
Bruce Momjian
7a0672b7b1 More pg_upgrade improvements. Almost done, except for max transaction
setting.
2002-01-10 04:58:19 +00:00
Tom Lane
4d72af6cb3 Describe type casts under the heading of Value Expressions, and explain
the difference between a run-time type cast and casting a literal string
to a specific type.  Minor editorial work in same area.
2002-01-09 23:38:06 +00:00
Bruce Momjian
5461983d08 Update with new features. Still disabled. 2002-01-09 21:50:52 +00:00
Peter Eisentraut
da1c1144e7 Make spelling of operating system names match official version closely.
And listing QNX 6 as both supported and unsupported is probably not helpful.
2002-01-09 00:52:38 +00:00
Peter Eisentraut
c58d5d5fcb Adjust spelling of article titles to match the originals, add some links. 2002-01-08 23:50:37 +00:00
Bruce Momjian
89e6ce1245 Update Thomas Lockhart's email address to lockhart@fourpalms.org. 2002-01-08 20:03:58 +00:00
Peter Eisentraut
9c9a72b807 Repair the GEQO bibliography. It was marked up all wrong. Move some of
the info to the main bibliography.
2002-01-08 18:03:26 +00:00
Peter Eisentraut
f8728467ff Point to main CPAN site, and reword a little. 2002-01-08 16:13:41 +00:00
Tom Lane
d09f6f7741 Minor wordsmithing. 2002-01-08 15:38:42 +00:00
Peter Eisentraut
a6e704ce95 Make FreeBSD URL point to the right chapter again. 2002-01-08 15:16:16 +00:00
Bruce Momjian
055d4f9208 Email address no longer valid. 2002-01-08 05:45:19 +00:00
Bruce Momjian
cc9ae0b63c Update bad URL's with good ones. 2002-01-08 05:39:26 +00:00
Peter Eisentraut
731204e090 Editorial review 2002-01-07 02:29:15 +00:00
Bruce Momjian
96ad60e919 Fix ecpg wording to be consistent. 2002-01-06 18:12:00 +00:00
Bruce Momjian
88ebc0f2f7 Remove ecpg TODO section:
> Looking at this I also found an ecpg TODO list in the docs:
>
>
http://candle.pha.pa.us/main/writings/pgsql/sgml/ecpg-develop.html
>
> Seems that TODO section should be removed.  Some items are done,
others
> are on the main TODO list.

That's correct. I did not fix the docs for quite some time.

Michael
--
Michael Meskes
2002-01-06 17:54:14 +00:00
Tom Lane
e59c15e4bb Fix copy-and-paste brain damage. (These commands do not create a
database.)
2002-01-06 03:33:26 +00:00
Bruce Momjian
99a3396822 ecpg.sgml manual page updated to ON.
---------------------------------------------------------------------------

When you run 'ecpg --help' you get the following:

          -t   turn on autocommit of transactions

amongst the other options... Shouldn't this be OFF as per the
documentation?

Best regards, Lee.

--
 Lee Kindness,   Senior Software Engineer,   lkindness@csl.co.uk
2002-01-04 18:58:46 +00:00
Thomas G. Lockhart
c5c28ed06a Add more complete details on date/time keywords and parsing rules.
Move some tabular information on these from the chapter on data types to
 the appendix on dates and times.
2002-01-04 17:02:25 +00:00
Bruce Momjian
0b79ed2745 Update FAQ. 2002-01-04 05:44:45 +00:00
Bruce Momjian
8be67450aa Update FAQ_DEV. 2002-01-03 08:20:54 +00:00
Bruce Momjian
5b24a98f2a Update FAQ_DEV. 2002-01-03 08:13:51 +00:00
Bruce Momjian
bc29b06b0a Add mention of index on foreign key for frequently updated primary key
tables.
2002-01-03 06:26:22 +00:00
Bruce Momjian
a4ee277e17 droplang had same problem as createlang; default are backwards and did
not work.  Fixed to match createlang.
2002-01-03 06:09:02 +00:00
Bruce Momjian
9d77dcc366 Add mention of PRIMARY in ALTER TABLE ... [ UNIQUE | PRIMARY ] 2002-01-03 05:37:43 +00:00
Bruce Momjian
04f3342e03 In createlang, make dbname optional, not langname, or rather, make
existing code of dbname optional actually work.
2002-01-03 05:30:04 +00:00
Tom Lane
e274325e02 Fix incorrect description of rowtype variable declarations. Eventually
(IMHO) the code should be fixed to do what the documentation formerly
claimed, and then revert this change.
2002-01-02 00:41:26 +00:00
Tom Lane
e7d9a6bf63 Repair example, per note in interactive docs. 2001-12-30 04:36:52 +00:00
Bruce Momjian
23ef0926e1 Update FAQ_DEV. 2001-12-30 04:31:29 +00:00
Bruce Momjian
642f2fe7cf Add missing <varlistentry>; shown in build logs. 2001-12-29 20:29:49 +00:00
Thomas G. Lockhart
dd0279b1ba Document the precision arguments for date/time types per SQL9x.
Update the list of recognized time zones.
Document the range of arguments allowed for SET TIME ZONE.
Still need to add info on other date/time symbols (e.g. "AM", "T")
 and to freshen the docs on the date/time parsing rules.
2001-12-29 18:35:54 +00:00
Bruce Momjian
fcac3b09ca Update FAQ_DEV. 2001-12-29 05:15:42 +00:00
Bruce Momjian
54481d10f3 Update FAQ_DEV. 2001-12-29 05:12:45 +00:00
Bruce Momjian
e0de8d9821 Update FAQ_DEV. 2001-12-29 03:42:59 +00:00
Bruce Momjian
593377f70c Add more Christof Petig ecpg items. 2001-12-28 05:03:10 +00:00
Bruce Momjian
deab927470 Add mention of Christof Petig for ecpg items. 2001-12-28 05:00:32 +00:00
Tom Lane
6f0f5bf2fb Expand on description of when to use or not use TRUST auth method. 2001-12-27 21:37:34 +00:00
Tom Lane
9935a85fa4 Document obj_description and col_description functions; expand
description of COMMENT command.
2001-12-27 21:36:57 +00:00
Peter Eisentraut
44d1e9d552 Small fixes 2001-12-27 21:10:15 +00:00
Bruce Momjian
adb1d4acfa Mention datatype() casting change. 2001-12-27 04:46:08 +00:00
Bruce Momjian
498d0087eb Update for new timestamp behavior. 2001-12-27 00:04:44 +00:00
Tom Lane
6896693d64 Fix directions for a client-only install, per comments from Alexey Borzov
and Vivek Khera.
2001-12-23 20:45:11 +00:00
Tom Lane
ce4d01d96b Update description of CURRENT_TIMESTAMP and friends. 2001-12-23 20:22:49 +00:00
Tom Lane
78ec1cb027 Type interval takes a precision, too. 2001-12-23 20:21:37 +00:00
Peter Eisentraut
d1396696e0 Lots of content and formatting improvements in release notes. HISTORY
now generated from DocBook sources.
2001-12-23 18:20:05 +00:00
Peter Eisentraut
3f3b7a9783 Add missing id attribute. 2001-12-23 18:18:09 +00:00
Thomas G. Lockhart
9640666c6f Spiff up discussion of precision on date/time data types.
Add a NetBSD/alpha and update info on a few other platforms.
2001-12-21 03:54:02 +00:00
Thomas G. Lockhart
2d004d7f95 Allow location of index creation perl script be be specified in
Makefile.custom, to allow finding it on Mandrake systems (at least).
2001-12-21 03:53:04 +00:00
Peter Eisentraut
41acf3d820 Some tuning 2001-12-19 18:49:56 +00:00
Peter Eisentraut
cebfe90f0b Revert breakage 2001-12-10 13:07:16 +00:00
Bruce Momjian
63b312d2da Add new Japanese FAQ versions. 2001-12-10 11:17:51 +00:00
Thomas G. Lockhart
03a321d214 Use PostgreSQL consistantly throughout docs. Before, usage was split evenly
between Postgres and PostgreSQL.
2001-12-08 03:24:40 +00:00
Thomas G. Lockhart
68cb184b56 Update list of currently supported platforms.
Mention SQL9x precision syntax for date/time types.
Use PostgreSQL consistantly throughout docs. Before, usage was split evenly
 between Postgres and PostgreSQL.
2001-12-08 03:24:23 +00:00
Bruce Momjian
15790465c2 Update FAQ. 2001-12-05 05:41:13 +00:00
Bruce Momjian
e383e411b7 Update FAQ. 2001-12-05 05:38:51 +00:00
Bruce Momjian
d1e77ecf95 Update FAQ. 2001-12-05 05:33:48 +00:00
Tom Lane
969cc16c69 Enforce restriction that COPY DELIMITERS string must be exactly one
character; replace strchr() search with simple comparison to speed up
COPY IN.  Per discussion in pghackers.
2001-12-04 21:19:57 +00:00
Bruce Momjian
fb170041c6 Update FAQ_DEV. 2001-12-04 17:12:25 +00:00
Bruce Momjian
b7579d62ce Update FAQ. 2001-12-04 07:12:08 +00:00
Bruce Momjian
2314bcfb95 Another test of double-commit. It used only commit one file. 2001-12-04 07:10:45 +00:00
Bruce Momjian
08475b75c3 Test of double-commit. 2001-12-04 07:09:53 +00:00
Bruce Momjian
7a0f2a648d Update FAQ_DEV. 2001-12-04 06:44:45 +00:00
Bruce Momjian
50cf849e28 Update FAQ_DEV. 2001-12-04 06:40:09 +00:00
Bruce Momjian
caf4da8a20 Update FAQ_DEV. 2001-12-04 06:37:26 +00:00
Bruce Momjian
79d5f6f6ec Update FAQ_DEV. 2001-12-04 06:35:51 +00:00
Bruce Momjian
c90bcb98bd Update FAQ_DEV. 2001-12-04 06:26:59 +00:00
Bruce Momjian
e0a5d6ce46 Update FAQ_DEV. 2001-12-04 06:20:53 +00:00
Bruce Momjian
00836012c6 Update FAQ_DEV. 2001-12-04 06:20:09 +00:00
Bruce Momjian
970dcf2776 Update FAQ_DEV. 2001-12-04 06:14:44 +00:00
Bruce Momjian
c36e598ecb Update FAQ_DEV. 2001-12-04 06:14:04 +00:00
Tom Lane
e469fac240 Recommend --enable-debug with somewhat more enthusiasm. 2001-12-04 02:21:35 +00:00
Tom Lane
0532175496 Fix trigger example for PG 7.2 change: count(*) now returns int8. 2001-12-04 02:07:11 +00:00
Tom Lane
7321eed9e8 Document max-processes-per-user limit as a possible cause of failures
in the parallel regression tests.  Suggest editing parallel_schedule
as a workaround if one cannot fix the system limits.
2001-12-04 01:49:17 +00:00
Tom Lane
05dada0833 Add some more material to the section about partial indexes. 2001-12-04 01:22:13 +00:00
Tom Lane
53f1173388 Provide some documentation for EXISTS, IN, NOT IN, ANY/SOME/ALL,
and row comparisons.  How'd this manage to slip through the cracks?
2001-12-01 04:19:20 +00:00
Bruce Momjian
97ce818897 Mention rules and views instead of SELECT triggers. 2001-11-30 01:22:47 +00:00
Bruce Momjian
d1a2a01f38 Add mention of no SELECT triggers. 2001-11-29 22:18:14 +00:00
Tom Lane
636a939fe5 Fix array_out's failure to backslash backslashes, per bug# 524. Also,
remove brain-dead rule that double quotes are needed if and only if the
datatype is pass-by-reference; neither direction of the implication holds
water.  Instead, examine the actual data string to see if it contains
any characters that force us to quote it.
Add some documentation about quoting of array values, which was previously
explained nowhere AFAICT.
2001-11-29 21:02:41 +00:00
Bruce Momjian
a4e8cd306c Cleanup of new ps markup. 2001-11-29 20:43:43 +00:00
Bruce Momjian
82c6869369 Update ps status display information for Solaris, from Tom Lane. 2001-11-29 20:26:55 +00:00
Peter Eisentraut
d5aa0dc8db Improve wording 2001-11-29 16:01:15 +00:00
Barry Lind
65aed07d80 Updated jdbc docs to reflect the doc comments received. Most comments were
already addressed by previous doc updates.
2001-11-29 05:35:51 +00:00
Bruce Momjian
d0c1769b77 Update FAQ. 2001-11-28 21:11:39 +00:00
Peter Eisentraut
651a639b8b proof-reading 2001-11-28 20:49:10 +00:00
Bruce Momjian
cde7dc82ca Mention ps environment flag, not just -e. 2001-11-28 20:36:09 +00:00
Bruce Momjian
4ee2698d0e Update 'ps e' comments. 2001-11-28 20:28:56 +00:00
Bruce Momjian
534af30cfd Document that PGPASSWORD is not secure. 2001-11-28 19:57:36 +00:00
Tom Lane
9d596e0e3e Clarify per suggestion from Bruno Wolff. 2001-11-28 15:39:49 +00:00
Tom Lane
d2f608251e Point out the dependency on having int8 arithmetic available. 2001-11-28 15:33:48 +00:00
Tom Lane
0dd3afad6b Reiterate that parsing of plpgsql functions is per-process. 2001-11-28 04:18:46 +00:00
Bruce Momjian
93f54561d7 Update FAQ_DEV. 2001-11-28 01:38:39 +00:00
Bruce Momjian
97f7257435 Update FAQ_DEV. 2001-11-28 01:38:09 +00:00
Bruce Momjian
c7651c15a6 Update FAQ_DEV. 2001-11-28 01:20:27 +00:00
Bruce Momjian
8b0fea4d92 Update FAQ_DEV. 2001-11-28 00:37:49 +00:00
Bruce Momjian
8b55943f1a Update FAQ. 2001-11-28 00:37:03 +00:00
Bruce Momjian
71b7206158 Update FAQ_DEV. 2001-11-28 00:36:28 +00:00
Bruce Momjian
c75484dc2b Update FAQ_DEV. 2001-11-28 00:32:10 +00:00
Bruce Momjian
37e5535433 Add mention of init -W flag for security. 2001-11-28 00:13:30 +00:00
Bruce Momjian
6bebd94845 Update FAQ_DEV. 2001-11-28 00:10:01 +00:00
Bruce Momjian
1e99bf5e4c Update FAQ_DEV. 2001-11-27 23:44:03 +00:00
Bruce Momjian
882e2899f0 Update FAQ_DEV. 2001-11-27 21:48:45 +00:00
Bruce Momjian
2ebb03c9ef Update FAQ_DEV. 2001-11-27 20:45:27 +00:00
Bruce Momjian
6e4a88a8ec Update BSD/OS as supported on 7.2. 2001-11-27 20:35:08 +00:00
Tom Lane
f441621eb1 Add a section about loading libpgtcl; fix errors and omissions in
documentation of pg_select command.
2001-11-27 20:33:29 +00:00
Bruce Momjian
45e7bdaaea Update FAQ. 2001-11-27 19:16:55 +00:00
Bruce Momjian
4267300f0c Update FAQ. 2001-11-27 18:22:32 +00:00
Tatsuo Ishii
e58261ca54 Fix imcomplete SGML tag.
Please check compile errors before you commit!
2001-11-27 13:02:33 +00:00
Bruce Momjian
da3328fca8 Update FAQ_DEV. 2001-11-27 02:48:20 +00:00
Bruce Momjian
78e65ad5af Update FAQ_DEV. 2001-11-27 02:36:59 +00:00
Bruce Momjian
2429c32722 Update FAQ_DEV. 2001-11-27 02:03:05 +00:00
Bruce Momjian
f0074b6098 Update FAQ_DEV. 2001-11-27 02:01:55 +00:00
Barry Lind
4ac5534456 formating and spelling fixes to my last doc update 2001-11-27 01:20:17 +00:00
Tom Lane
9a9d9e8812 Fix confusion about -f switch: it's output not input. 2001-11-26 23:09:21 +00:00
Bruce Momjian
ea4f08ed49 Rename make_keywords.README to make_keywords. 2001-11-26 22:41:58 +00:00
Bruce Momjian
b7ca9a9403 Update FAQ_DEV. 2001-11-26 21:56:40 +00:00
Bruce Momjian
07c3f00b14 Rename find_baddefs to find_badmacros 2001-11-26 21:42:24 +00:00
Bruce Momjian
dc199c1cd7 Update for all priviledge items. 2001-11-26 21:01:13 +00:00
Bruce Momjian
48e6cfc699 Add mention of UPDATE permissions. 2001-11-26 20:11:28 +00:00
Bruce Momjian
93562cf5b9 Add documentation about "--" not working on Free/OpenBSD. 2001-11-26 19:41:55 +00:00
Bruce Momjian
790259abd4 More tag cleanups. 2001-11-26 19:07:11 +00:00
Bruce Momjian
30036d8bda Fix SGML tag misspelling. 2001-11-26 18:51:19 +00:00
Barry Lind
f98298e26f Updates to JDBC doc:
Editing pass over entire chapter
  Rewrote section dealing with Large Objects to also talk about bytea support
  Removed secion on Serialize functionality a we intend to remove it in the
   next release
2001-11-26 05:57:57 +00:00
Peter Eisentraut
6840aa3665 Fix comment 2001-11-25 22:17:27 +00:00
Tom Lane
665066f394 Further work on postmaster and postgres reference pages. 2001-11-25 01:11:36 +00:00
Bruce Momjian
1fadb05d4a Fix markup error I introduced. 2001-11-25 01:05:37 +00:00
Tom Lane
78263b43fd Add cross-reference to standalone-backend ref page. 2001-11-25 00:18:48 +00:00
Bruce Momjian
46f946df04 Mention -c also allows -- GNU long option format, all platforms. 2001-11-25 00:15:30 +00:00
Tom Lane
2ec958721d Tweak int8in to accept -9223372036854775808, per recent discussion in
pgsql-patches.
2001-11-24 19:57:06 +00:00
Tom Lane
b104ffbd3d Copy-editing. 2001-11-23 22:06:20 +00:00
Tom Lane
ec27da1ce3 Copy-editing. 2001-11-23 21:08:51 +00:00
Bruce Momjian
ee587da6db Improve wording. 2001-11-23 17:56:13 +00:00
Bruce Momjian
8b48010288 Document index entries are built first. 2001-11-23 17:15:30 +00:00
Bruce Momjian
ed19b9149a Add mention that ALTER TABLE RENAME affects indexes and sequences too. 2001-11-22 03:42:32 +00:00
Tom Lane
e7243dce47 Add description of SSL request protocol. Miscellaneous copy-editing. 2001-11-22 01:22:10 +00:00
Tom Lane
6c134eb6f1 Spell 'precedes', 'preceding' correctly in various places. 2001-11-21 22:57:01 +00:00
Tom Lane
cf3b164aac Add documentation for pg_get_ruledef and friends. 2001-11-21 22:33:14 +00:00
Tom Lane
22e22a5208 Spelling and grammatical corrections. 2001-11-21 21:12:34 +00:00
Thomas G. Lockhart
6c402eafc8 Deprecate 'current' date/time constant.
Purge "Postgres" in favor of "PostgreSQL" in docs. ref/ not yet done.
2001-11-21 06:09:45 +00:00
Thomas G. Lockhart
2475e87481 Deprecate 'current' for date/time input.
Fix up references to "PostgreSQL" rather than "Postgres". Was roughly
 evenly split between the two before. ref/ files not yet done.
2001-11-21 05:53:41 +00:00
Thomas G. Lockhart
eec9511f0a Update for first platforms reported as working
for the upcoming 7.2 release.
2001-11-21 05:52:01 +00:00
Bruce Momjian
8e6467fff3 Peter Eisentraut wrote:
> So I would base this discussion on the premise "bytea stores binary data"
> (insert examples).
>
> Some stylistic issues:
>
> bytea => <type>bytea</type>
>
> NULLs => zero bytes/bytes of value zero ("NULL" is too overloaded)
>
> 'non-printable' => <quote>nonprintable</quote>
>
> MUST => <emphasis>must</emphasis>
>

Here's a patch against *CVS tip* to address Peter's comments. Please let
me know what you think!

Joe Conway
2001-11-21 03:17:22 +00:00
Bruce Momjian
05979312ed Added a few paragraphs to explain current restricted execution environment,
and error handling behavior.

Bradley McLean
2001-11-20 21:09:53 +00:00
Bruce Momjian
004293317f Here's a patch adding documentation for the PQescapeBytea function to
libpq.sgml

I was trying (but gave up) to cross-reference back to the input escape
table in the User's Guide, but could not get the documentation to
compile with a cross-book xref (missing IDREF error). Can a cross-book
xref be done?

 Joe Conway
2001-11-20 20:28:31 +00:00
Bruce Momjian
01e0dae689 I've created a new section to func.sgml, "Binary String Functions and
Operators", plagiarized shamelessly from the "String Functions and
Operators" section. There were enough differences that it made sense (at
least to me) to give this its own section instead of cramming it in with
normal string functions. This way I could also make the examples
relevant, which is particularly important for bytea.

One thing I think worth mentioning: while documenting the trim()
function I realized that I never implemented the bytea equivalent of
rtrim and ltrim. Therefore, the 'leading' and 'trailing' forms of trim,
available with text, are not available with bytea (I'd be happy to
correct this, but since it would require an initdb, I guess not until
7.3) -- the submitted doc accurately reflects this.

I will look for other areas of the docs that need mention of bytea, but
any guidance would be much appreciated.

--

Here's a second bytea documentation patch. This one significantly
expands the "Binary Data" section added by Bruce recently.


Joe Conway
2001-11-20 15:42:44 +00:00
Tom Lane
bb2ff5f2d4 Expand discussion of logfile management a little bit. 2001-11-20 04:27:49 +00:00
Tom Lane
fb726283b6 Expand description of how to use REINDEX. 2001-11-20 02:45:00 +00:00
Tom Lane
0dfe913803 Fill in empty tutorial section about transactions. 2001-11-19 23:17:38 +00:00
Tom Lane
ec62ba9361 Try to be a little bit clearer about the implications of GRANT TO PUBLIC
and REVOKE FROM PUBLIC: the latter is not the same as 'revoke from all
users', but the ref page blurred the difference.
2001-11-19 19:03:56 +00:00
Tom Lane
5e86d226e4 Grammatical and spelling fixes. 2001-11-19 09:05:02 +00:00
Tom Lane
375dcf9c88 Fix a few typos, grammatical problems, etc in new tutorial material.
Overall a really nice job here, Peter ...
2001-11-19 05:37:53 +00:00
Tom Lane
9b03776ff2 A bunch of small doco updates motivated by scanning the comments on
the interactive docs.
2001-11-19 03:58:25 +00:00
Tom Lane
9f07cb70db Add example of using 'sameuser' followed by 'all' pg_hba records to
enforce a limit on who can connect to databases other than their own.
From a recent discussion in pg-admin.
2001-11-18 23:24:16 +00:00
Tom Lane
8cf87ac393 Fix some typos. 2001-11-18 22:27:00 +00:00
Tom Lane
0ad017fc64 Update various obsolete remarks about VACUUM. 2001-11-18 22:17:30 +00:00
Tom Lane
acac465efa utils/geo-decls.h should be utils/geo_decls.h, per report from
StÅphane Raimbault.
2001-11-18 21:28:00 +00:00
Tom Lane
deab49566d Mention that LIKE ... ESCAPE '' is allowed to specify no
escape character.
2001-11-18 21:17:10 +00:00
Tom Lane
b16f6c6b95 Point out that TRUNCATE can't be used inside a transaction block. 2001-11-18 21:14:20 +00:00
Peter Eisentraut
17f0b55d15 Initial round of tweakage for man pages 2001-11-18 20:35:02 +00:00
Peter Eisentraut
31578cdeac Updates about NLS 2001-11-18 20:33:32 +00:00
Tom Lane
e2548526cf Mention the option to submit bug reports via a web-form. Minor
copy editing.
2001-11-18 07:14:49 +00:00
Tom Lane
5906d7e096 Fix obsolete claim that only btree indexes support multiple columns;
GiST does now, too.  (Someone needs to write a description of GiST
to add to this chapter.  I don't know enough about it ...)
2001-11-18 00:59:00 +00:00
Tom Lane
0729c4a61f Clean up treatment of creating/dropping databases in User's Guide and
Admin Guide.  Move discussion of template databases out of footnotes
in CREATE DATABASE ref page and into a section of the Admin Guide.
Clean up various obsolete claims, do some copy-editing.
2001-11-18 00:38:00 +00:00
Tom Lane
c9a85cb276 Copy-editing. 2001-11-17 22:23:55 +00:00
Tom Lane
2043340b87 Expand documentation for sequence functions (nextval and friends).
Place it in the expected place in the User's Guide, rather than
hiding it in the command reference page for CREATE SEQUENCE.
2001-11-17 22:20:34 +00:00
Peter Eisentraut
d5a951260a Update key words for recent grammar changes 2001-11-17 13:27:16 +00:00
Bruce Momjian
dc6efa44e2 Update Japanese FAQ's. 2001-11-17 05:11:43 +00:00
Peter Eisentraut
306798ded5 Use -f for rm. 2001-11-16 16:29:56 +00:00
Tom Lane
7e422ac0e7 Fix silly error in plpgsql example. 2001-11-16 00:40:11 +00:00
Tom Lane
fa09b6d7b2 Add documentation for new plpgsql cursor operations. Also, another
round of editorial effort.
2001-11-15 23:32:39 +00:00
Tom Lane
307e449e5f Significant editorial overhaul of plpgsql documentation. 2001-11-15 06:25:22 +00:00
Tatsuo Ishii
7a546eb985 Add changes for multibyte support in 7.2. 2001-11-15 06:15:34 +00:00
Tom Lane
b3bbeed1f6 Overhaul SPI documentation: bring it into some semblance of agreement
with reality, and add doco for Jan's recent round of enhancements.
2001-11-14 22:26:02 +00:00
Tom Lane
a370cad990 Try to be a little less terse about dealing with variable-length structs
in C, but recommend that newbies who don't recognize this trick should do
some studying ...
2001-11-14 22:14:22 +00:00
Bruce Momjian
74114938ad Gnu -> GNU in docs. 2001-11-14 20:40:33 +00:00
Tom Lane
a585c20d12 Tweak parser so that there is a defined representation for datatypes
bpchar, bit, numeric with typmod -1.  Alter format_type so that this
representation is printed when the typmod is -1.  This ensures that
tables having such columns can be pg_dump'd and reloaded correctly.
Also, remove the rather useless and non-SQL-compliant default
precision and scale for type NUMERIC.  A numeric column declared as
such (with no precision/scale) will now have typmod -1 which means
that numeric values of any precision/scale can be stored in it,
without conversion to a uniform scale.  This seems significantly
more useful than the former behavior.  Part of response to bug #513.
2001-11-12 21:04:46 +00:00
Peter Eisentraut
3c879e3738 Add some more index entries. 2001-11-12 19:19:39 +00:00
Bruce Momjian
905109f24a Update FAQ. 2001-11-12 07:38:57 +00:00
Bruce Momjian
53a4fa6b0e Add more MD5 documentation now that odbc/jdbc support it. 2001-11-12 02:35:16 +00:00
Bruce Momjian
c336b58f93 Fix typo pointed out by bruno@wolff.to 2001-11-11 19:24:28 +00:00
Tom Lane
26e8a4f356 Repair erroneous ALTER DROP CONSTRAINT example. 2001-11-10 20:13:37 +00:00
Peter Eisentraut
e5fadc78b5 Support for images in jadetex and pdfjadetex. Formatting improvements for
lists, bibliography, index, page numbering.  Add comments.
2001-11-08 23:46:29 +00:00
Peter Eisentraut
03048ffd3f Use <sect1> rather than <section> to simplify formatting. 2001-11-08 23:44:01 +00:00
Peter Eisentraut
15f2215c86 Add missing spaces 2001-11-08 23:42:23 +00:00
Peter Eisentraut
84f07f5768 Fix indexterms 2001-11-08 23:41:12 +00:00
Peter Eisentraut
ede8724010 Move the indexterms around so they don't affect formatting 2001-11-08 23:40:40 +00:00
Peter Eisentraut
e0a513e82e Use <important> rather than <caution> when the condition isn't hazardous,
because the result looks to "scary" otherwise.
2001-11-08 23:39:22 +00:00
Peter Eisentraut
5766f98a73 Small tuning 2001-11-08 23:37:50 +00:00
Peter Eisentraut
06f008e154 Spacing improvements 2001-11-08 23:36:55 +00:00
Peter Eisentraut
d65df97885 Don't use dot in id attribute, which confuses the index generation code in
this particular instance.
2001-11-08 23:36:18 +00:00
Peter Eisentraut
a715c0e4c5 Cleanup of bibliography 2001-11-08 23:34:33 +00:00
Tom Lane
4a3bf197eb Add some notes about conditional rules used with views. 2001-11-06 23:54:32 +00:00
Tom Lane
0053cebea5 Fix coredump in plpgsql when trying to return a rowtype result.
Need to return a TupleTableSlot, not just a bare tuple.
2001-11-05 19:41:56 +00:00
Tom Lane
3d5ddc0b3c Clean up wrong, misleading, or obsolete documentation about array types,
particularly in the CREATE TYPE reference page.  Fix some other errors
in the CREATE TYPE page, too.
2001-11-03 21:42:47 +00:00
Peter Eisentraut
e25058bb14 Update keyword list for 7.2 release. 2001-11-02 19:13:09 +00:00
Tom Lane
8a069abd18 Fix pg_pwd caching mechanism, which was broken by changes to fork
postmaster children before client auth step.  Postmaster now rereads
pg_pwd on receipt of SIGHUP, the same way that pg_hba.conf is handled.
No cycles need be expended to validate password cache validity during
connection startup.
2001-11-02 18:39:57 +00:00
Tom Lane
fe61b6cc4a Fix broken markup. 2001-11-01 04:48:00 +00:00
Tom Lane
d14147de77 Copy-editing. 2001-11-01 04:07:29 +00:00
Peter Eisentraut
d63805a469 A little reformatting for better print appearance. 2001-10-31 20:39:30 +00:00
Peter Eisentraut
8e144b09ae More information about partial indexes, and some tips about examining
index usage.
2001-10-31 20:38:26 +00:00
Peter Eisentraut
028c72525d Reformat some non-sensical markup. 2001-10-31 20:37:39 +00:00
Peter Eisentraut
d6b2d6b640 Empty ulinks show the url string as hot text; no need to repeat the url as
element content.
2001-10-31 20:35:02 +00:00
Bruce Momjian
85801ed9b8 Attached is a small patch for the Reference Manual which adds
information about nulls and sort order.

This is based on information obtained from Peter Eisentraut and
Tom Lane on pgsql-hackers.

Please check my English and Docbook markup, as both are a second
language to me.

Rene Pijlman
2001-10-31 04:50:52 +00:00
Bruce Momjian
4911c85e86 Add ALTER TABLE ADD UNIQUE regression tests from Christopher Kings-Lynne.
Add space between slash for ALTER TABLE / ADD ....

Regression and *.po updates to follow.
2001-10-31 04:49:44 +00:00
Tom Lane
b9cd4c8331 Grammatical corrections. 2001-10-30 20:13:44 +00:00
Tom Lane
6b0be33446 Update WAL configuration discussion to reflect post-7.1 tweaking.
Minor copy-editing.
2001-10-26 23:10:21 +00:00
Tom Lane
8394e4723a More cleanup of CREATE FUNCTION examples. 2001-10-26 21:17:03 +00:00
Tom Lane
62651c0176 Editorial work on xfunc chapter --- better explanations about SQL
functions handling composite types and sets, various minor cleanups.
2001-10-26 19:58:12 +00:00
Barry Lind
b75e1752f0 updates to jdbc documentation for 7.2 2001-10-25 22:00:31 +00:00
Tom Lane
92e1b7431f Editorial work on descriptions of options. 2001-10-23 22:11:22 +00:00
Bruce Momjian
3e76c9aaa5 Move ALL out of UNION|INTERSECT|EXCEPT syntax.
Alvaro Herrera
2001-10-23 16:42:36 +00:00
Tom Lane
453f3503f3 Add note explaining that multiple prompts for a password are normal
behavior when password auth is used.
2001-10-22 23:48:11 +00:00
Peter Eisentraut
f08c9ff84b Make the CREATE TABLE ref page more readable and update some information. 2001-10-22 18:14:47 +00:00
Bruce Momjian
f363b3177d Remove LIMIT #,# and suggest LIMIT # OFFSET #, per mailing list discussion. 2001-10-20 02:55:39 +00:00
Tom Lane
6b5aeb797f Typo. 2001-10-19 00:46:51 +00:00
Bruce Momjian
f5a5b44c4d Change error code docs to use colons. 2001-10-18 20:43:05 +00:00
Bruce Momjian
278669e038 Document all the ecpg error codes. 2001-10-18 20:32:58 +00:00
Tom Lane
8be02853b8 Add documentation about statistics collector and stats views & functions. 2001-10-16 23:57:06 +00:00
Tom Lane
2bb6b98d5c Add a section about the planner's statistics, including a description
of the new pg_stats view.
2001-10-16 01:13:44 +00:00
Tom Lane
daf72bba91 Add note about pg_stats to pg_statistic entry; add sections for
pg_largeobject, pg_listener, pg_rewrite, pg_trigger; miscellaneous
small improvements.
2001-10-15 22:47:47 +00:00
Tom Lane
8f6d72cb39 Suggest placing audit trail on pg_shadow, not its view pg_user. 2001-10-15 02:02:06 +00:00
Tom Lane
9bc15d499d Update examples of type coercion rules --- some of them no longer worked
as the example claimed, because of changes elsewhere in the system.
2001-10-15 01:00:59 +00:00
Bruce Momjian
360e61e1f5 Update FAQ. 2001-10-14 23:27:31 +00:00
Bruce Momjian
657d0044b0 Update FAQ. 2001-10-13 05:27:05 +00:00
Bruce Momjian
46712990bd More keyword uppercasing. 2001-10-13 04:58:35 +00:00
Bruce Momjian
1d3a47af0c Attached patch for unconditional enabling of pltcl-unknown support.
Enabling this feature adds very light overhead of 1 select from pg_class on
first using of pl/tcl in backend if unknown suppport is really unused.
But pl/tcl with this support has very improved functionality.

Patch includes changes to documentation.
2001-10-13 04:23:50 +00:00
Bruce Momjian
36458b93e0 Update FAQ. 2001-10-13 03:53:45 +00:00
Bruce Momjian
db7aa99fb9 Update FAQ. 2001-10-13 03:37:42 +00:00
Bruce Momjian
cdd4379394 Update FAQ. 2001-10-13 01:32:47 +00:00
Bruce Momjian
0818073894 More uppercasing. 2001-10-12 23:34:30 +00:00
Bruce Momjian
705869dd17 Uppercase keywords where appropriate. 2001-10-12 23:32:34 +00:00
Bruce Momjian
c24216bea8 Fix reverse FOR loop to work properly, uppercase cleanup in file. 2001-10-12 21:19:09 +00:00
Tatsuo Ishii
f426465ba9 Add a new function "pg_client_encoding" which returns the current client
side encoding name. This is necessary for client API's such as JDBC
to perform correct encoding conversions. See my email "[HACKERS]
pg_client_encoding" 10 Sep 2001.
2001-10-12 02:08:34 +00:00
Tom Lane
f9e6e27c87 Break transformCreateStmt() into multiple routines and make
transformAlterStmt() use these routines, instead of having lots of
duplicate (not to mention should-have-been-duplicate) code.
Adding a column with a CHECK constraint actually works now,
and the tests to reject unsupported DEFAULT and NOT NULL clauses
actually fire now.  ALTER TABLE ADD PRIMARY KEY works, modulo
having to have created the column(s) NOT NULL already.
2001-10-12 00:07:15 +00:00
Bruce Momjian
e98476eb03 Document use of GEQO param in subquery pullups. 2001-10-11 21:16:26 +00:00
Bruce Momjian
c19ff887c6 Add documention for ecpg -209 error. 2001-10-11 20:25:42 +00:00
Bruce Momjian
95c18db868 Remove mention of "pg_result -list" becuase it is not implemented, per
Tatsuo.
2001-10-11 16:30:41 +00:00
Peter Eisentraut
371f49bf9f Remove gratuitous discrepancy between extract() and date_part(),
regarding timezone_hour, timezone_minute vs. tz_hour, tz_minute.
Document the former.
2001-10-10 00:02:42 +00:00
Peter Eisentraut
ec5c62874d Allow optional () after current_user, session_user, user, current_time,
current_timestamp, current_date for ODBC compatibility.

Add more functions to odbc.sql catalog extension, use new CREATE OR
REPLACE FUNCTION.

Document iODBC/unixODBC build options.
2001-10-09 22:32:33 +00:00
Peter Eisentraut
ffb8f73890 Bunch of copy fitting and style sheet tweakage to get decent looking print
output (from pdfjadetex).  Also updated instructions to install documentation
processing toolchain.
2001-10-09 18:46:00 +00:00
Tom Lane
2034086ed1 Correct some errors in plpgsql examples, as reported by Junichi Kobayasi. 2001-10-09 04:55:11 +00:00
Tom Lane
0b3bca6c6f Change plpgsql to depend on main parser's type-declaration grammar,
rather than having its own somewhat half-baked notion of what a type
declaration looks like.  This is necessary now to ensure that plpgsql
will think a 'timestamp' variable has the same semantics as 'timestamp'
does in the main SQL grammar; and it should avoid divergences in future.
2001-10-09 04:15:38 +00:00
Bruce Momjian
343318028f ouput -> output
Oliver Elphick
2001-10-05 15:50:11 +00:00
Peter Eisentraut
a50696c9e1 Finetuning for legalnotice in print output. Add some "ASCII markup" for
text output.
2001-10-04 22:30:14 +00:00
Peter Eisentraut
ede3a1ea16 Finetuning for better print formatting 2001-10-04 22:28:44 +00:00
Peter Eisentraut
ddcf1bca74 Replace simplelists with itemizedlists for better formatting 2001-10-04 22:27:58 +00:00
Peter Eisentraut
334368fb68 Rewording 2001-10-04 22:27:18 +00:00
Peter Eisentraut
536394e73a Fix spacing to get proper URL formatting in print output 2001-10-04 22:26:27 +00:00
Peter Eisentraut
255bd588a7 Hack for Jade vs TeX interpretation of "--" 2001-10-04 22:25:48 +00:00
Tom Lane
03b0a589d1 Consider interpreting a function call as a trivial (binary-compatible)
type coercion after failing to find an exact match in pg_proc, but before
considering interpretations that involve a function call with one or
more argument type coercions.  This avoids surprises wherein what looks
like a type coercion is interpreted as coercing to some third type and
then to the destination type, as in Dave Blasby's bug report of 3-Oct-01.
See subsequent discussion in pghackers.
2001-10-04 22:06:46 +00:00
Bruce Momjian
c4566933b1 Change some 7.2 mentions to version macro. 2001-10-04 04:46:43 +00:00
Tom Lane
2e5fda7b7e DROP AGGREGATE and COMMENT ON AGGREGATE now accept the expected syntax
'aggname (aggtype)'.  The old syntax 'aggname aggtype' is still accepted
for backwards compatibility.  Fix pg_dump, which was actually broken for
most cases of user-defined aggregates.  Clean up error messages associated
with these commands.
2001-10-03 20:54:22 +00:00
Thomas G. Lockhart
a51de40fb6 Minor fixup in spacing for tabular information. 2001-10-03 05:24:22 +00:00
Tom Lane
f2c657375d Add CREATE OR REPLACE FUNCTION syntax to allow replacing a function
definition without changing the function's OID, thereby not breaking
rules, views, triggers, etc that depend on it.  From Gavin Sherry.
2001-10-02 21:39:36 +00:00
Tom Lane
d7bdfab492 Fix typo (block size is 8 kB not 8192 kB). 2001-10-01 22:44:31 +00:00
Bruce Momjian
95b2a2a34f Fix wording. 2001-10-01 21:47:24 +00:00
Bruce Momjian
735594ff08 Update docs for 7.2 mention where appropriate. 2001-10-01 17:46:46 +00:00
Bruce Momjian
034895125d > > > > > - PostgreSQL requires to be compiled with --enable-multibyte
> > > > >   and --enable-unicode-convertion if it ought to work correctly
> > > > >   with Tcl/Tk >= 8.1 (client or server side).
> > > > >
> > > > > - PL/Tcl needs to be changed to use pg_do_encoding_conversion
> > > > >   if it runs on a Tcl version >= 8.1 .
> > >
> > > > I'll do pl/tcl part in the next version of patch. Using this approach we
> > > > can eliminate overhead for databases in UNICODE.
> > >
> > > Any progress on this?  I'd prefer to get rid of this --enable-pltcl-utf
> > > option before release.
> >
> > Done
> >
> > Next version removes --enable-pltcl-utf switch and enables embedded
> > utf conversion of pgsql if tcl version >=8.1 and --enable-unicode-conversion
2001-10-01 15:33:31 +00:00
Tom Lane
f00da6d841 Allow the postmaster to accept changes in PGC_BACKEND GUC variables
from the config file, so that these changes will propagate to backends
started later.  Already-started backends continue to ignore changes
in these variables.
2001-09-30 20:16:21 +00:00
Bruce Momjian
85c2d1c4ca Change tar -T file to tar cat file for BSD tar. 2001-09-30 19:18:29 +00:00
Bruce Momjian
e7bbf4bc1c Change tar -c -f to -cf for BSD tar. 2001-09-30 19:09:57 +00:00
Tom Lane
f9f258281e Create a GUC parameter max_files_per_process that is a configurable
upper limit on what we will believe from sysconf(_SC_OPEN_MAX).  The
default value is 1000, so that under ordinary conditions it won't
affect the behavior.  But on platforms where the kernel promises far
more than it can deliver, this can be used to prevent running out of
file descriptors.  See numerous past discussions, eg, pgsql-hackers
around 23-Dec-2000.
2001-09-30 18:57:45 +00:00
Peter Eisentraut
14d330b5b6 Use <mediaobject> instead of <graphic> for forward compatibility. Be more
flexible about the extension of the graphic files, allow for other formats
in print output.  (Generating these formats is not implemented yet.)
2001-09-30 16:05:54 +00:00
Peter Eisentraut
b600319c25 Fix *.gif expansion to be empty when no gif files are used. 2001-09-30 16:01:12 +00:00
Tom Lane
499abb0c0f Implement new 'lightweight lock manager' that's intermediate between
existing lock manager and spinlocks: it understands exclusive vs shared
lock but has few other fancy features.  Replace most uses of spinlocks
with lightweight locks.  All remaining uses of spinlocks have very short
lock hold times (a few dozen instructions), so tweak spinlock backoff
code to work efficiently given this assumption.  All per my proposal on
pghackers 26-Sep-01.
2001-09-29 04:02:27 +00:00
Thomas G. Lockhart
0b268e5d88 Fix markup to allow compilation. The chapters on failure and recovery
need more work, but at least they have something now.
2001-09-28 20:48:17 +00:00
Thomas G. Lockhart
f9681968e0 Add information on new timestamp and timestamptz data types.
Start chapter on recovery techniques. Still needs work for release.
2001-09-28 08:15:35 +00:00
Tom Lane
3d59ad00e8 Remove useless LockDisable() function and associated overhead, per my
proposal of 26-Aug.
2001-09-27 16:29:13 +00:00
Peter Eisentraut
c0a9283742 Rename collect_* options to more user-friendly names. 2001-09-23 21:52:36 +00:00
Bruce Momjian
328870a890 One more LIMIT doc update. 2001-09-23 13:34:44 +00:00
Bruce Momjian
0a24c70a8f Add mention of log file rotation with mention of syslog SIGHUP capability. 2001-09-23 04:06:24 +00:00
Bruce Momjian
1aab783b59 Implement TODO item:
* Change LIMIT val,val to offset,limit to match MySQL

Documentation updates too.
2001-09-23 03:39:01 +00:00
Bruce Momjian
ddfdb1e3f1 Update anoncvs info, per Marc. 2001-09-23 01:16:35 +00:00
Bruce Momjian
c36e2b2d0d Update FAQ. 2001-09-23 00:07:50 +00:00
Bruce Momjian
39ceaa19f0 Fix 6.4.* release dates, pointed out by Tom Lane. 2001-09-22 21:36:38 +00:00
Bruce Momjian
f5ab01ada7 WAL file numbers: Sequenatial -> ever-increasing 2001-09-22 03:59:17 +00:00
Peter Eisentraut
91778e890d Suggest running ldconfig after installation if available. 2001-09-21 23:20:02 +00:00
Peter Eisentraut
fdf07fe14f For consistency with the rest of PostgreSQL, rename BLOBs to large objects
in messages and documentation.
2001-09-21 21:58:30 +00:00
Tom Lane
196700c372 Add 'reload' option to pg_ctl to send SIGHUP to the postmaster. 2001-09-21 21:10:56 +00:00
Tom Lane
c1c888a9de Code review for MD5 authorization patch. Clean up some breakage
(salts were always zero!?), add much missing documentation.
2001-09-21 20:31:49 +00:00
Peter Eisentraut
4e77b4a548 Readd test/regress/README file, this time with a well-defined and simple
rule to remake it when necessary.
2001-09-21 18:37:05 +00:00
Tom Lane
35b7601b04 Add an overall timeout on the client authentication cycle, so that
a hung client or lost connection can't indefinitely block a postmaster
child (not to mention the possibility of deliberate DoS attacks).
Timeout is controlled by new authentication_timeout GUC variable,
which I set to 60 seconds by default ... does that seem reasonable?
2001-09-21 17:06:12 +00:00