Commit Graph

19585 Commits

Author SHA1 Message Date
Neil Conway cf1f6f98f2 Improvements to documentation of shared memory configuration under
FreeBSD. From Mark Kirkwood, editorializing by Neil Conway.
2005-02-10 05:14:58 +00:00
Neil Conway 280cae35aa Use now() rather than 'now' in an example in the PL/PgSQL docs. From David
Fetter and Ben Calvert.
2005-02-10 05:01:07 +00:00
Bruce Momjian 8f5b4c8c8c Update pginstaller URL to http://www.postgresql.org/ftp/win32/.
Backpatch to 8.0.X.
2005-02-10 04:52:31 +00:00
Neil Conway 3df9abd1a5 ALTER TABLE ADD COLUMN exhibits a significant memory leak when adding a
column with a default expression. In that situation, we need to rewrite
the heap relation. To evaluate the new default expression, we use
ExecEvalExpr(); however, this can allocate memory in the current memory
context, and ATRewriteTable() does not switch out of the active portal's
heap memory context. The end result is a rather large memory leak (on
the order of gigabytes for a reasonably sized table).

This patch changes ATRewriteTable() to switch to the per-tuple memory
context before beginning the per-tuple loop. It also removes an explicit
heap_freetuple() in the loop, since that is no longer needed.

In an unrelated change, I noticed the code was scanning through the
attributes of the new tuple descriptor for each tuple of the old table.
I changed this to use precomputation, which should slightly speed up
the loop.

Thanks to steve@deefs.net for reporting the leak.
2005-02-09 23:17:26 +00:00
Michael Meskes d32b3aec52 Fixed bug in parsing of CREATE AS statement. 2005-02-09 11:26:44 +00:00
Bruce Momjian 38efdc8bc1 Spacing:
< *  Allow the PITR process to be debugged and data examined
> * Allow the PITR process to be debugged and data examined
2005-02-08 03:23:51 +00:00
Bruce Momjian dc95779679 It seems like most people don't want automatic failover so I am removing
the item:

< 	o Automatic failover
<
< 	  The proper solution to this will probably the use of a master/slave
< 	  replication solution like Sloney and a connection pooling tool like
< 	  pgpool.
<
2005-02-08 03:21:02 +00:00
Neil Conway c76ff4bc4e Better late than never: document that the GiST API changed in 8.0 in the
"incompatibilities" section of the release notes.
2005-02-06 22:31:50 +00:00
Tom Lane e507399790 Document array behavior for out-of-range subscripts. 2005-02-06 20:59:30 +00:00
Tom Lane 2a6c032503 Repair CLUSTER failure after ALTER TABLE SET WITHOUT OIDS. Turns out
there are corner cases involving dropping toasted columns in which the
previous coding would fail, too: the new version of the table might not
have any TOAST table, but we'd still propagate possibly-wide values of
dropped columns forward.
2005-02-06 20:19:08 +00:00
Tom Lane 4f82112473 Fix bit-rot in ipc_test.c; it didn't include some stuff that pg_shmem.c
now depends on.
2005-02-05 20:07:16 +00:00
Tom Lane 12179c99b1 Marginal hack to merge adjacent ReleaseBuffer/ReadBuffer calls into
ReleaseAndReadBuffer during GIST index searches.  We already did this
in btree and rtree, might as well do it here too.
2005-02-05 19:38:58 +00:00
Neil Conway 11635c3f6f Refactor some duplicated code in lock.c: create UnGrantLock(), move code
from LockRelease() and LockReleaseAll() into it. From Heikki Linnakangas.
2005-02-04 02:04:53 +00:00
Tom Lane ee467c3530 Fix minor thinko in logic to set dump order when dumping from a pre-7.3
database: aggregates should be dumped in the same pass as operators,
not in the same pass as functions.
2005-02-03 23:38:58 +00:00
Tom Lane cc4f58f4cd Ensure that all details of the ARC algorithm are hidden within freelist.c.
This refactoring does not change any algorithms or data structures, just
remove visibility of the ARC datastructures from other source files.
2005-02-03 23:29:19 +00:00
Neil Conway ad893a361d Minor SGML improvements. 2005-02-03 07:12:37 +00:00
Tom Lane ad476170e9 Improve performance of fmgr.c calling routines for cases with more than
two arguments.  Per suggestions from A. Ogawa.
2005-02-02 22:40:04 +00:00
Tom Lane fffb5819ca Adjust constant-folding of CASE expressions so that the simple comparison
form of CASE (eg, CASE 0 WHEN 1 THEN ...) can be constant-folded as it
was in 7.4.  Also, avoid constant-folding result expressions that are
certainly unreachable --- the former coding was a bit cavalier about this
and could generate unexpected results for all-constant CASE expressions.
Add regression test cases.  Per report from Vlad Marchenko.
2005-02-02 21:49:09 +00:00
Bruce Momjian b3a7e987a1 Improve wording of to_char() change in 8.1:
The 8.1 release will remove the <function>to_char()</> function
      for intervals.
2005-02-02 18:16:13 +00:00
Bruce Momjian f69513df17 Update FAQ numbering. 2005-02-02 17:44:22 +00:00
Bruce Momjian 947ae56d80 Update RESET ALL items:
<   all temporary tables, removal of any NOTIFYs, etc.  This could be used
<   for connection pooling.  We could also change RESET ALL to have this
<   functionality.
>   all temporary tables, removal of any NOTIFYs, cursors, prepared
>   queries(?), currval()s, etc.  This could be used for connection pooling.
>   We could also change RESET ALL to have this functionality.
2005-02-02 17:26:49 +00:00
Bruce Momjian 68c4804b08 Add to release checklist:
* Update inet/cidr data types with newest Bind patches
2005-02-02 16:58:52 +00:00
Michael Meskes 4b56bd85c0 Fixed bug in parsing of #line statement in declare section. 2005-02-02 15:37:43 +00:00
Bruce Momjian cde6056e34 Remove pgsql_tmp directory FAQ item. 2005-02-02 13:41:18 +00:00
Neil Conway 73f630500b Add support for temporary views, including documentation and regression
tests. Contributed by Koju Iijima, review from Neil Conway, Gavin Sherry
and Tom Lane.

Also, fix error in description of WITH CHECK OPTION clause in the CREATE
VIEW reference page: it should be "CASCADED", not "CASCADE".
2005-02-02 06:36:02 +00:00
Neil Conway f94197ef35 Fix a bug induced by the list-rewrite that resulted in incrementing the
command counter more than necessary. Per report from Michael Fuhr.
2005-02-01 23:28:40 +00:00
Tom Lane a3f945a1b2 Adjust estimate_num_groups() to not clamp per-relation group count
estimate to less than the number of values estimated for any one grouping
Var, as suggested by Manfred.  This is intuitively right, and what's
more it puts the plan choices in the subselect regression test back the
way they were before ...
2005-02-01 23:08:13 +00:00
Bruce Momjian 48522fd30d Add Josh's performance page. 2005-02-01 21:11:06 +00:00
Tom Lane 2a8874841d Adjust plpgsql to allow assignment to an element of an array that is
initially NULL.  For 8.0 we changed the main executor to have this
behavior in an UPDATE of an array column, but plpgsql's equivalent case
was overlooked.  Per report from Sven Willenberger.
2005-02-01 19:35:14 +00:00
Bruce Momjian 68b0e29800 Add FETCH/MOVE:
< * Change LIMIT/OFFSET to use int8
> * Change LIMIT/OFFSET and FETCH/MOVE to use int8
2005-02-01 04:56:53 +00:00
Bruce Momjian bb14d8becf Add:
> * Allow GRANT/REVOKE permissions to be inherited by objects based on
>   schema permissions
2005-02-01 04:54:43 +00:00
Bruce Momjian 4f63cc6a30 Final FAQ cleanups to remove information about very old releases. 2005-02-01 02:40:50 +00:00
Bruce Momjian 3c16965995 Remove outer join simulation using UNION now that we have had outer
joins for quite a long time.
2005-02-01 02:35:48 +00:00
Bruce Momjian 2de7ebe910 Remove FAQ about database terms. 2005-02-01 02:31:59 +00:00
Bruce Momjian 2ccf79a6a1 Remove FAQ mention of DROP column. 2005-02-01 01:41:37 +00:00
Bruce Momjian 25deba3141 Update LIMIT/FETCH FAQ item. 2005-02-01 01:36:13 +00:00
Tom Lane 0a92c58b7c Sync inet formatting code with recent BIND releases. In particular,
fix bug with inconsistent selection of default mask length for
"class D" addresses.  Per report from Steve Atkins.
2005-02-01 00:59:09 +00:00
Bruce Momjian 14f5c84589 Update connections FAQ item. 2005-02-01 00:19:15 +00:00
Bruce Momjian 0c86f0e174 Fix markup typo. 2005-01-31 22:59:06 +00:00
Bruce Momjian 1b2ebc591c Update debeug FAQ. 2005-01-31 22:58:00 +00:00
Bruce Momjian d96398d1eb Restructure debug FAQ entry. 2005-01-31 22:57:17 +00:00
Bruce Momjian 1f7aa643b6 Reorganize FAQ entry on performance. 2005-01-31 20:40:46 +00:00
Bruce Momjian 7069a885af Update admin tools FAQ. 2005-01-31 02:45:32 +00:00
Bruce Momjian 2149b54f1c Update PHP mention. 2005-01-31 02:43:11 +00:00
Bruce Momjian cd63e08f86 Remove "Support" FAQ item. We now have a tab on our web site. 2005-01-31 02:40:00 +00:00
Bruce Momjian 18013e25c6 Wording improvement. 2005-01-31 02:19:23 +00:00
Bruce Momjian 131ff4e5cd Reorder support FAQ items. 2005-01-31 02:17:11 +00:00
Bruce Momjian 14f3fb610d Update section to mention developer's FAQ. 2005-01-31 02:09:34 +00:00
Bruce Momjian 83d8591081 Mention releases are every 10-12 months now. 2005-01-31 01:59:54 +00:00
Bruce Momjian e688443cbf Simplify FAQ item about obtaining support. 2005-01-31 01:53:49 +00:00