]> granicus.if.org Git - postgresql/log
postgresql
22 years agoDone:
Bruce Momjian [Sat, 24 Aug 2002 11:24:58 +0000 (11:24 +0000)]
Done:

> * -SELECT cash_out(2) crashes because of opaque

22 years agoEnhancements to how queries with bind values are stored internally and sent to
Barry Lind [Fri, 23 Aug 2002 20:45:49 +0000 (20:45 +0000)]
Enhancements to how queries with bind values are stored internally and sent to
the server.  Previously we allocated a new String object for the entire final
query we were sending to the database.  If you had a big query, or especially
if you had large bind values you ended up with essentially two copies in memory.
This change will reuse the existing objects and therefore should take 1/2 the
memory it does today for a given query.  This restructuring will also allow
in the future the ability to stream bytea data to the server instead of the current approach of pulling it all into memory.
I also fixed a test that was failing on a 7.2 database.
Also renamed some internal variables and some minor cleanup.

 Modified Files:
  jdbc/org/postgresql/core/QueryExecutor.java
  jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
  jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
  jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
  jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
  jdbc/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java

22 years agoFurther cleanup around the edges of OPAQUE/pseudotype changes. Correct
Tom Lane [Fri, 23 Aug 2002 16:41:38 +0000 (16:41 +0000)]
Further cleanup around the edges of OPAQUE/pseudotype changes.  Correct
the declarations of some index access method support functions.  Support
SQL functions returning VOID.

22 years agoAdapt for SRF(Set Returning Function).
Tatsuo Ishii [Fri, 23 Aug 2002 08:19:49 +0000 (08:19 +0000)]
Adapt for SRF(Set Returning Function).

22 years agoNot sure how I fixed it the first time, but here's a fix for another
Bruce Momjian [Fri, 23 Aug 2002 04:27:19 +0000 (04:27 +0000)]
Not sure how I fixed it the first time, but here's a fix for another
instance in which the docs mention that 'NAMEDATALEN == 32".

Neil Conway

22 years agoAdd space.k>
Bruce Momjian [Fri, 23 Aug 2002 03:10:44 +0000 (03:10 +0000)]
Add space.k>

22 years agoAdd:
Bruce Momjian [Fri, 23 Aug 2002 03:10:15 +0000 (03:10 +0000)]
Add:

> * Allow xlog directory location to be specified during initdb, perhaps
>   using symlinks

22 years agoPatch resolve ERROR problem for non-goog query_txt.
Bruce Momjian [Fri, 23 Aug 2002 02:56:36 +0000 (02:56 +0000)]
Patch resolve ERROR problem for non-goog query_txt.

Teodor Sigaev

22 years agoThis patch updates the CREATE OPERATOR sgml docs for the new default
Bruce Momjian [Fri, 23 Aug 2002 02:54:18 +0000 (02:54 +0000)]
This patch updates the CREATE OPERATOR sgml docs for the new default
settings of NAMEDATALEN. I looked through the docs for other
references to NAMEDATALEN, but this is the only one I could find.

Neil Conway

22 years agoUpdate Russian FAQ.
Bruce Momjian [Fri, 23 Aug 2002 02:53:20 +0000 (02:53 +0000)]
Update Russian FAQ.

22 years agoAdd:
Bruce Momjian [Fri, 23 Aug 2002 02:46:39 +0000 (02:46 +0000)]
Add:

> * Add GUC parameter to print queries that generate errors

22 years agoVery minor copy-editing.
Tom Lane [Fri, 23 Aug 2002 01:28:17 +0000 (01:28 +0000)]
Very minor copy-editing.

22 years agoAdd note that explains that \df omits functions it thinks are I/O functions.
Tom Lane [Fri, 23 Aug 2002 01:27:44 +0000 (01:27 +0000)]
Add note that explains that \df omits functions it thinks are I/O functions.

22 years agoUpdate reference to value of NAMEDATALEN. Someone needs to troll the
Tom Lane [Fri, 23 Aug 2002 00:33:24 +0000 (00:33 +0000)]
Update reference to value of NAMEDATALEN.  Someone needs to troll the
docs and find the other obsolete statements that no doubt lurk.

22 years agoUpdate contrib regression tests for OPAQUE datatype changes.
Tom Lane [Fri, 23 Aug 2002 00:04:52 +0000 (00:04 +0000)]
Update contrib regression tests for OPAQUE datatype changes.

22 years agoSince the plpgsql test has been part of the standard regression tests
Tom Lane [Thu, 22 Aug 2002 23:33:43 +0000 (23:33 +0000)]
Since the plpgsql test has been part of the standard regression tests
for a good long while, I see no reason to maintain this original copy.

22 years agoTranspose info from src/pl/plpgsql/test/README into standard regression test file.
Tom Lane [Thu, 22 Aug 2002 23:31:48 +0000 (23:31 +0000)]
Transpose info from src/pl/plpgsql/test/README into standard regression test file.

22 years agoMark 7.2.2 as newest release.
Bruce Momjian [Thu, 22 Aug 2002 23:20:52 +0000 (23:20 +0000)]
Mark 7.2.2 as newest release.

22 years agoUpdate FAQ.
Bruce Momjian [Thu, 22 Aug 2002 23:20:25 +0000 (23:20 +0000)]
Update FAQ.

22 years agoRemove all traces of the ODBC driver, which is now on GBorg as the psqlodbc
Marc G. Fournier [Thu, 22 Aug 2002 22:43:14 +0000 (22:43 +0000)]
Remove all traces of the ODBC driver, which is now on GBorg as the psqlodbc
project ...

22 years agoFix bit rot in pg_dump's ability to dump from 7.2 and 7.1 servers.
Tom Lane [Thu, 22 Aug 2002 21:35:50 +0000 (21:35 +0000)]
Fix bit rot in pg_dump's ability to dump from 7.2 and 7.1 servers.

22 years agoFixed-size buffer in dumpClasses is not big enough anymore given the
Tom Lane [Thu, 22 Aug 2002 21:29:34 +0000 (21:29 +0000)]
Fixed-size buffer in dumpClasses is not big enough anymore given the
addition of a column list clause to the COPY command.  Spotted by
Martin Renters.

22 years agoImprove wording of upgrade section.
Bruce Momjian [Thu, 22 Aug 2002 15:31:07 +0000 (15:31 +0000)]
Improve wording of upgrade section.

22 years agoCode review for recent TRUNCATE changes. Tighten relation-kind check,
Tom Lane [Thu, 22 Aug 2002 14:23:36 +0000 (14:23 +0000)]
Code review for recent TRUNCATE changes.  Tighten relation-kind check,
tighten foreign-key check (a self-reference should not prevent TRUNCATE),
improve error message, cause a relation's TOAST table to be truncated
along with the relation.

22 years agoCommit updated repeat() patch, from Neil Conway
Bruce Momjian [Thu, 22 Aug 2002 05:05:19 +0000 (05:05 +0000)]
Commit updated repeat() patch, from  Neil Conway

22 years agoFix for documention:
Bruce Momjian [Thu, 22 Aug 2002 04:56:44 +0000 (04:56 +0000)]
Fix for documention:

>>" It's also possible to select no escape character by writing ESCAPE ''.
>>In this case there is no way to turn off the special meaning of
>>underscore and percent signs in the pattern."

Joe Conway

22 years agoThis patch should fix the problem. Doesn't include my previous patch
Bruce Momjian [Thu, 22 Aug 2002 04:55:05 +0000 (04:55 +0000)]
This patch should fix the problem. Doesn't include my previous patch
for repeat(). Again, somewhat off-the-cuff, so I might have missed
something...

test=# select lpad('xxxxx',1431655765,'yyyyyyyyyyyyyyyy');
ERROR:  Requested length too large
test=# select rpad('xxxxx',1431655765,'yyyyyyyyyyyyyyyy');
ERROR:  Requested length too large

(That's on a Unicode DB, haven't tested other encodings but AFAICT
this fix should still work.)

Neil Conway

22 years agorepeat() fix:
Bruce Momjian [Thu, 22 Aug 2002 04:54:20 +0000 (04:54 +0000)]
repeat() fix:

> Neil Conway <neilc@samurai.com> writes:
> > +   /* Check for integer overflow */
> > +   if (tlen / slen != count)
> > +           elog(ERROR, "Requested buffer is too large.");
>
> What about slen == 0?

Good point -- that wouldn't cause incorrect results or a security
problem, but it would reject input that we should really accept.

Revised patch is attached.

Neil Conway

22 years ago> > I had great difficulty in finding how to change the search path, so here
Bruce Momjian [Thu, 22 Aug 2002 04:52:17 +0000 (04:52 +0000)]
> > I had great difficulty in finding how to change the search path, so here
> > is a patch to add some cross-referencing.

Oliver Elphick

22 years ago# Disallow TRUNCATE on tables that are involved in referential
Bruce Momjian [Thu, 22 Aug 2002 04:51:06 +0000 (04:51 +0000)]
# Disallow TRUNCATE on tables that are involved in referential
constraints

The issue with finding and removing foreign key constraints is no longer
an issue, so please apply the attached.

It does NOT check for rules or on delete triggers (old style foreign
keys) as those are difficult to deal with (remove, truncate, re-add).

Rod Taylor

22 years agoAdd:
Bruce Momjian [Thu, 22 Aug 2002 04:47:31 +0000 (04:47 +0000)]
Add:

> * Allow bytea to handle LIKE with non-TEXT patterns

22 years agoAs suggested by Tom, this patch restricts the right-hand argument of
Bruce Momjian [Thu, 22 Aug 2002 04:45:11 +0000 (04:45 +0000)]
As suggested by Tom, this patch restricts the right-hand argument of
bytealike to TEXT.

This leaves like_escape_bytea() without anything to do, but I left it in
place in anticipation of the eventual bytea pattern selectivity
functions. If there is agreement that this would be the best long term
solution, I'll take it as a TODO for 7.4.

Joe Conway

22 years agoOops, we got duplicate oids from patches again; pick a unique one.
Bruce Momjian [Thu, 22 Aug 2002 04:41:06 +0000 (04:41 +0000)]
Oops, we got duplicate oids from patches again;  pick a unique one.

22 years agoAdd:
Bruce Momjian [Thu, 22 Aug 2002 03:24:01 +0000 (03:24 +0000)]
Add:

replace(string, from, to)
   -- replaces all occurrences of "from" in "string" to "to"
split(string, fldsep, column)
   -- splits "string" on "fldsep" and returns "column" number piece
to_hex(int32_num) & to_hex(int64_num)
   -- takes integer number and returns as hex string

Joe Conway

22 years agoRemove libpq++ SGML documentation.
Bruce Momjian [Thu, 22 Aug 2002 03:17:38 +0000 (03:17 +0000)]
Remove libpq++ SGML documentation.

22 years agoRemove erroneous character from Makefile due to editor error.
Bruce Momjian [Thu, 22 Aug 2002 02:18:45 +0000 (02:18 +0000)]
Remove erroneous character from Makefile due to editor error.

22 years agoOkay, libpq++ is moved to GBorg, and all traces of it have been removed
Marc G. Fournier [Thu, 22 Aug 2002 00:15:14 +0000 (00:15 +0000)]
Okay, libpq++ is moved to GBorg, and all traces of it have been removed
from the core repository ... I haven't *moved* the libpq++ files out of the
tree, mainly as we want to keep them in place for past branches ...

Peter, I think I've covered all the files I need, and re-ran autoconf to make
sure the configure file is in place properly ...

22 years agoAdd a bunch of pseudo-types to replace the behavior formerly associated
Tom Lane [Thu, 22 Aug 2002 00:01:51 +0000 (00:01 +0000)]
Add a bunch of pseudo-types to replace the behavior formerly associated
with OPAQUE, as per recent pghackers discussion.  I still want to do some
more work on the 'cstring' pseudo-type, but I'm going to commit the bulk
of the changes now before the tree starts shifting under me ...

22 years agoAdd --help and --version options. Message cleanup. NLS.
Peter Eisentraut [Wed, 21 Aug 2002 22:24:34 +0000 (22:24 +0000)]
Add --help and --version options.  Message cleanup.  NLS.

22 years agoChanges made so new conversion Makefiles will build out of the source tree.
Bruce Momjian [Wed, 21 Aug 2002 21:33:55 +0000 (21:33 +0000)]
Changes made so new conversion Makefiles will build out of the source tree.

22 years agoMove PO files into subdirectories separate from the source code.
Peter Eisentraut [Wed, 21 Aug 2002 20:42:27 +0000 (20:42 +0000)]
Move PO files into subdirectories separate from the source code.

22 years agoAdd sys/types.h to common includes.
Peter Eisentraut [Wed, 21 Aug 2002 17:20:58 +0000 (17:20 +0000)]
Add sys/types.h to common includes.

22 years agoFix bad markup detected by Alvaro Herrera
Bruce Momjian [Wed, 21 Aug 2002 16:08:19 +0000 (16:08 +0000)]
Fix bad markup detected by Alvaro Herrera

22 years agoFix markup, Alvaro Herrera.
Bruce Momjian [Wed, 21 Aug 2002 05:25:49 +0000 (05:25 +0000)]
Fix markup,  Alvaro Herrera.

22 years agoUse a non-duplicate OID for pg_lock_status.
Tom Lane [Tue, 20 Aug 2002 19:23:07 +0000 (19:23 +0000)]
Use a non-duplicate OID for pg_lock_status.

22 years agoEnable large file support.
Peter Eisentraut [Tue, 20 Aug 2002 17:54:45 +0000 (17:54 +0000)]
Enable large file support.

Use off_t and size_t in pg_dump to handle file offset arithmetic correctly.

22 years agoIncrease buffer size in cash_words(). Pure paranoia; I don't think the
Tom Lane [Tue, 20 Aug 2002 16:46:29 +0000 (16:46 +0000)]
Increase buffer size in cash_words().  Pure paranoia; I don't think the
code is broken, but any small change in the output format might overrun
the buffer with the old size.

22 years agoUpdate expected files for recent changes of domain tests.
Tom Lane [Tue, 20 Aug 2002 16:37:03 +0000 (16:37 +0000)]
Update expected files for recent changes of domain tests.
From Rod Taylor.

22 years agoThis patch improves the behavior of FOUND in PL/PgSQL. In Oracle,
Bruce Momjian [Tue, 20 Aug 2002 05:28:24 +0000 (05:28 +0000)]
This patch improves the behavior of FOUND in PL/PgSQL. In Oracle,
FOUND is set whenever a SELECT INTO returns > 0 rows, *or* when an
INSERT, UPDATE, or DELETE affects > 0 rows. We implemented the first
part of this behavior, but not the second.

I also improved the documentation on the various situations in which
FOUND can be set (excluding inside FOR loops, which I still need to
think about), and added some regression tests for this behavior.

Neil Conway

22 years agoCleanup.
Bruce Momjian [Tue, 20 Aug 2002 05:12:48 +0000 (05:12 +0000)]
Cleanup.

22 years ago- test for indexes on a domain
Bruce Momjian [Tue, 20 Aug 2002 04:48:36 +0000 (04:48 +0000)]
- test for indexes on a domain
- don't fail type-sanity checks if a domain exists

Rod Taylor

22 years agoAllow pg_statistics to be reset by calling pg_stat_reset().
Bruce Momjian [Tue, 20 Aug 2002 04:47:52 +0000 (04:47 +0000)]
Allow pg_statistics to be reset by calling pg_stat_reset().

Christopher Kings-Lynne

22 years agoAdd current_database().
Bruce Momjian [Tue, 20 Aug 2002 04:46:00 +0000 (04:46 +0000)]
Add current_database().

> Quick system function to pull out the current database.
>
> I've used this a number of times to allow stored procedures to find out
> where they are.  Especially useful for those that do logging or hit a
> remote server.
>
> It's called current_database() to match with current_user().

It's also a necessity for an informational schema.  The catalog
(database) name is required in a number of places.

Rod Taylor

22 years agoRemoved code that is no longer used and has been commented out
Barry Lind [Tue, 20 Aug 2002 04:26:02 +0000 (04:26 +0000)]
Removed code that is no longer used and has been commented out
for the last two releases.

 Modified Files:
  jdbc/org/postgresql/Driver.java.in
  jdbc/org/postgresql/PG_Stream.java
 Removed Files:
  jdbc/org/postgresql/core/BytePoolDim1.java
  jdbc/org/postgresql/core/BytePoolDim2.java
  jdbc/org/postgresql/core/MemoryPool.java
  jdbc/org/postgresql/core/ObjectPool.java
  jdbc/org/postgresql/core/SimpleObjectPool.java

22 years agoAdd mention of -F not supported by pg_dumpall. Code already disallows it.
Bruce Momjian [Tue, 20 Aug 2002 02:20:48 +0000 (02:20 +0000)]
Add mention of -F not supported by pg_dumpall.  Code already disallows it.

22 years agoDone by Rod:
Bruce Momjian [Tue, 20 Aug 2002 02:16:38 +0000 (02:16 +0000)]
Done by Rod:

> * -Make other constraints clearer in dump file

22 years agoFix pg_dump to dump serial columns as serials. Per pghackers discussion,
Tom Lane [Mon, 19 Aug 2002 19:33:36 +0000 (19:33 +0000)]
Fix pg_dump to dump serial columns as serials.  Per pghackers discussion,
cause SERIAL column declaration not to imply UNIQUE, so that this can be
done without creating an extra index.

22 years agoRemove Ident nodetype in favor of using String nodes; this fixes some
Tom Lane [Mon, 19 Aug 2002 15:08:47 +0000 (15:08 +0000)]
Remove Ident nodetype in favor of using String nodes; this fixes some
latent wrong-struct-type bugs and makes the coding style more uniform,
since the majority of places working with lists of column names were
already using Strings not Idents.  While at it, remove vestigial
support for Stream node type, and otherwise-unreferenced nodes.h entries
for T_TupleCount and T_BaseNode.
NB: full recompile is recommended due to changes of Node type numbers.
This shouldn't force an initdb though.

22 years agoFix bug in pg_convert() per report from MaC.Yui.
Tatsuo Ishii [Mon, 19 Aug 2002 04:08:08 +0000 (04:08 +0000)]
Fix bug in pg_convert() per report from MaC.Yui.
It pfree() wrong pointer.

22 years agoFix broken tag.
Tatsuo Ishii [Mon, 19 Aug 2002 04:05:00 +0000 (04:05 +0000)]
Fix broken tag.

22 years agoClean up leftover bugs from recent COPY feature patch --- missed
Tom Lane [Mon, 19 Aug 2002 00:40:15 +0000 (00:40 +0000)]
Clean up leftover bugs from recent COPY feature patch --- missed
required changes to copyfuncs/equalfuncs.

22 years agoAdd missing copyfuncs/equalfuncs entries, including T_Null which has
Tom Lane [Mon, 19 Aug 2002 00:11:53 +0000 (00:11 +0000)]
Add missing copyfuncs/equalfuncs entries, including T_Null which has
been missing forever; surprising it wasn't noticed before.  The other
additions are, um, sloppiness in certain recent feature additions.

22 years agoImprove obsolete comment.
Tom Lane [Mon, 19 Aug 2002 00:10:03 +0000 (00:10 +0000)]
Improve obsolete comment.

22 years agoFix small copy-and-pasteo.
Tom Lane [Sun, 18 Aug 2002 21:05:32 +0000 (21:05 +0000)]
Fix small copy-and-pasteo.

22 years agoFix potential buffer overrun in cube_out(), per report from
Tom Lane [Sun, 18 Aug 2002 20:15:52 +0000 (20:15 +0000)]
Fix potential buffer overrun in cube_out(), per report from
Bruno Wolff.

22 years agoRemove optimization whereby parser would make only one sort-list entry
Tom Lane [Sun, 18 Aug 2002 18:46:15 +0000 (18:46 +0000)]
Remove optimization whereby parser would make only one sort-list entry
when two equal() targetlist items were to be added to an ORDER BY or
DISTINCT list.  Although indeed this would make sorting fractionally
faster by sometimes saving a comparison, it confuses the heck out of
later stages of processing, because it makes it look like the user
wrote DISTINCT ON rather than DISTINCT.  Bug reported by joe@piscitella.com.

22 years agoMake CREATE CONSTRAINT TRIGGER check for REFERENCES privilege on both
Peter Eisentraut [Sun, 18 Aug 2002 11:20:05 +0000 (11:20 +0000)]
Make CREATE CONSTRAINT TRIGGER check for REFERENCES privilege on both
master and slave tables.

22 years agoMake pg_dump output more portable and more pleasing to look at.
Peter Eisentraut [Sun, 18 Aug 2002 09:36:26 +0000 (09:36 +0000)]
Make pg_dump output more portable and more pleasing to look at.

The -n and -N options were removed.  Quoting is now smart enough to
supply quotes if and only if necessary.

Numerical types are now printed without quotes, except in cases of
special values such as NaN.

Boolean values printed as true and false.

Most string literals now do not escape whitespace characters (newlines,
etc.) for portability.

SET SESSION AUTHORIZATION argument is a string literal, to follow SQL.

Made commands output by pg_dump use consistent spacing and indentation.

22 years agoAdd #include <sys/time.h>.
Tom Lane [Sun, 18 Aug 2002 03:47:08 +0000 (03:47 +0000)]
Add  #include <sys/time.h>.

22 years agoCode review for 'at character n' patch --- point at proper end of
Tom Lane [Sun, 18 Aug 2002 03:35:08 +0000 (03:35 +0000)]
Code review for 'at character n' patch --- point at proper end of
a token scanned by multiple lex rules.

22 years agoAdd db-local user names, per discussion on hackers.
Bruce Momjian [Sun, 18 Aug 2002 03:03:26 +0000 (03:03 +0000)]
Add db-local user names, per discussion on hackers.

22 years agoMore changes to match new error format.
Bruce Momjian [Sun, 18 Aug 2002 03:00:17 +0000 (03:00 +0000)]
More changes to match new error format.

22 years agoUse variable for format to suppress overly-anal-retentive gcc warning
Tom Lane [Sun, 18 Aug 2002 02:48:41 +0000 (02:48 +0000)]
Use variable for format to suppress overly-anal-retentive gcc warning
about %c

22 years agoModify regression tests to match new error reporting format from Gavin.
Bruce Momjian [Sun, 18 Aug 2002 02:48:29 +0000 (02:48 +0000)]
Modify regression tests to match new error reporting format from Gavin.

22 years agoBack out tcl patch, per Tom Lane:
Bruce Momjian [Sun, 18 Aug 2002 01:39:43 +0000 (01:39 +0000)]
Back out tcl patch, per Tom Lane:

Everytime if I do PQconsumeInput (when the backend channel gets
readable) I check for the return value. (0 == error) and generate a
notification manually, e.g. fixed string connection_closed) and pass it to the

22 years agoAdd includes for prototype using timeval.
Bruce Momjian [Sun, 18 Aug 2002 01:35:40 +0000 (01:35 +0000)]
Add includes for prototype using timeval.

22 years agoClean up compile warnings.
Bruce Momjian [Sun, 18 Aug 2002 00:06:01 +0000 (00:06 +0000)]
Clean up compile warnings.

22 years agoFix typo.
Tom Lane [Sat, 17 Aug 2002 20:24:51 +0000 (20:24 +0000)]
Fix typo.

22 years agoReverse out XLogDir/-X write-ahead log handling, per discussion.
Bruce Momjian [Sat, 17 Aug 2002 15:12:07 +0000 (15:12 +0000)]
Reverse out XLogDir/-X write-ahead log handling, per discussion.
Original patch from Thomas.

22 years agoAdd:
Bruce Momjian [Sat, 17 Aug 2002 15:09:41 +0000 (15:09 +0000)]
Add:

> * Use dependency information to dump data in proper order

22 years agoDone:
Bruce Momjian [Sat, 17 Aug 2002 13:14:07 +0000 (13:14 +0000)]
Done:

>  o -Add command to display locks

22 years agoAdd lock file.
Bruce Momjian [Sat, 17 Aug 2002 13:11:43 +0000 (13:11 +0000)]
Add lock file.

22 years agoIn that case, attached is a patch which locates the beginning of the
Bruce Momjian [Sat, 17 Aug 2002 13:06:50 +0000 (13:06 +0000)]
In that case, attached is a patch which locates the beginning of the
offending token more efficiently (per your suggestion of using
scanbuf). The new patch does the same as before:

template1=# select * frum pg_class;
ERROR:  parser: parse error at or near "frum" at character 10

It also implement's Tom's suggestion:

template1=# select * from pg_class where\g
ERROR:  parse: parse error at end of input

Gavin Sherry

22 years ago[ Newest version of patch applied.]
Bruce Momjian [Sat, 17 Aug 2002 13:04:19 +0000 (13:04 +0000)]
[ Newest version of patch applied.]

This patch is an updated version of the lock listing patch. I've made
the following changes:

    - write documentation
    - wrap the SRF in a view called 'pg_locks': all user-level
      access should be done through this view
    - re-diff against latest CVS

One thing I chose not to do is adapt the SRF to use the anonymous
composite type code from Joe Conway. I'll probably do that eventually,
but I'm not really convinced it's a significantly cleaner way to
bootstrap SRF builtins than the method this patch uses (of course, it
has other uses...)

Neil Conway

22 years agoAdd libpq connection timeout parameter.
Bruce Momjian [Sat, 17 Aug 2002 12:33:18 +0000 (12:33 +0000)]
Add libpq connection timeout parameter.

Denis A Ustimenko

22 years agoWhat I have done for libpgtcl:
Bruce Momjian [Sat, 17 Aug 2002 12:19:31 +0000 (12:19 +0000)]
What I have done for libpgtcl:
Everytime if I do PQconsumeInput (when the backend channel gets
readable) I check for the return value. (0 == error) and generate a
notification manually, e.g. fixed string connection_closed) and pass it to the
TCL event queue. The only other thing I had to do is to comment out removing
all pending events in PgStopNotifyEventSource whenever the connection was
unexpectedly closed (so the manually generated event will not be deleted).

A broken backend connection triggers a notify event to the client (fixed
notification string "connection_closed") so proper action can be taken to switch
to another database server etc. Remember that this is event driven. If you have
applications, that have idle database connections most of the time, you'll get
immediate feedback of a dying server. Upon connection to the server issue a
pg_notify for notify event "connection_closed" and whenever the backend crashes
(which it does do in very very rare cases) you get an event driven recovery. (of
course the Tcl-Event loop has to be processed). Issuing a notification
"connection_closed" on a still working database could be used for switching to
another db-server (which I've actually impelemented right now).

Gerhard Hintermayer

22 years agoImprove documentation of trigger firing queue handling, cleanup.
Bruce Momjian [Sat, 17 Aug 2002 12:15:49 +0000 (12:15 +0000)]
Improve documentation of trigger firing queue handling, cleanup.

Neil Conway

22 years agoEditorial corrections.
Tom Lane [Sat, 17 Aug 2002 05:07:18 +0000 (05:07 +0000)]
Editorial corrections.

22 years agoBroken markup.
Tom Lane [Sat, 17 Aug 2002 04:09:18 +0000 (04:09 +0000)]
Broken markup.

22 years agoCleanup.
Tom Lane [Sat, 17 Aug 2002 04:06:48 +0000 (04:06 +0000)]
Cleanup.

22 years agoFix broken Makefiles.
Tom Lane [Sat, 17 Aug 2002 04:03:36 +0000 (04:03 +0000)]
Fix broken Makefiles.

22 years agoAdd missing links.
Tom Lane [Sat, 17 Aug 2002 03:38:43 +0000 (03:38 +0000)]
Add missing links.

22 years agoAdd doc file for pg_resetxlog.
Bruce Momjian [Sat, 17 Aug 2002 02:45:29 +0000 (02:45 +0000)]
Add doc file for pg_resetxlog.

22 years agoAdd files for pg_resetxlog.
Bruce Momjian [Sat, 17 Aug 2002 02:44:24 +0000 (02:44 +0000)]
Add files for pg_resetxlog.

22 years agoMove pg_controldata to /bin.
Bruce Momjian [Sat, 17 Aug 2002 02:43:08 +0000 (02:43 +0000)]
Move pg_controldata to /bin.

22 years agoModify pg_dump to dump foreign-key constraints as constraints, not as
Tom Lane [Fri, 16 Aug 2002 23:01:21 +0000 (23:01 +0000)]
Modify pg_dump to dump foreign-key constraints as constraints, not as
sets of triggers.  Also modify psql \d command to show foreign key
constraints as such and hide the triggers.  pg_get_constraintdef()
function added to backend to support these.  From Rod Taylor, code
review and some editorialization by Tom Lane.

22 years agoCode review for patch to dump primary and unique constraints as
Tom Lane [Fri, 16 Aug 2002 21:03:42 +0000 (21:03 +0000)]
Code review for patch to dump primary and unique constraints as
constraints, rather than as CREATE INDEX commands.

22 years agoMake domain types indexable. Rod Taylor & Tom Lane.
Tom Lane [Fri, 16 Aug 2002 20:55:09 +0000 (20:55 +0000)]
Make domain types indexable.  Rod Taylor & Tom Lane.

22 years agoImprove wording.
Bruce Momjian [Fri, 16 Aug 2002 20:36:25 +0000 (20:36 +0000)]
Improve wording.

22 years agoMove pg_controldata from /contrib to src/bin.
Bruce Momjian [Fri, 16 Aug 2002 20:34:06 +0000 (20:34 +0000)]
Move pg_controldata from /contrib to src/bin.