Commit Graph

19544 Commits

Author SHA1 Message Date
Teodor Sigaev
1c8fbd9b25 Fix float8->int64 transformation 2005-02-25 14:04:39 +00:00
Bruce Momjian
4a68e59418 Backpatch FAQ to 8.0.X. 2005-02-25 00:33:45 +00:00
Tom Lane
777745435c Document that only a table's owner may TRUNCATE it. Per Keith Worthington. 2005-02-22 19:06:35 +00:00
Bruce Momjian
7f6754bdb4 Update initdb locale/encoding documentation description. Backpatch to
8.0.X.
2005-02-22 02:56:37 +00:00
Bruce Momjian
bb7f5a7393 Try to get Borland CC to compile.
Backpatch to 8.0.X which doesn't work right now.
2005-02-21 21:22:46 +00:00
Bruce Momjian
6da3aee893 Update Russian FAQ.
Viktor Vislobokov
2005-02-21 17:34:10 +00:00
Teodor Sigaev
1c423be404 Simplify defines 2005-02-21 14:10:44 +00:00
Teodor Sigaev
f49d69b813 Fix memory leak for timestamp(with and w/o tz) and time indexes 2005-02-21 10:47:52 +00:00
Neil Conway
14fd629aea Fix two typos, per report from Hashem Masoud. 2005-02-21 06:12:41 +00:00
Neil Conway
abd7168524 Document the "register" and "unregister" pg_ctl subcommands, for use on
Windows. Patch from Magnus Hagander.
2005-02-21 02:14:34 +00:00
Tom Lane
0845ee3958 New arrangement to always let the bgwriter do checkpoints broke
CHECKPOINT and some other commands in the context of a standalone
backend.  Allow a standalone backend to do its own checkpoints.
2005-02-19 23:16:27 +00:00
Tom Lane
254eef2f28 Ensure that the resolved datatype of any unknown Param is propagated
into the sub-SELECT targetlist when it appears in the context
INSERT INTO foo SELECT $1 ...  Per report from Abhijit Menon-Sen.
2005-02-19 19:33:23 +00:00
Tom Lane
c35c944b87 ALTER LANGUAGE RENAME has never worked. Per Sergey Yatskevich. 2005-02-14 06:17:59 +00:00
Bruce Momjian
92597d1386 Print file name and errno string on rmtree failure.
Backpatch to 8.0.X.
2005-02-13 16:50:54 +00:00
Peter Eisentraut
66b568ca96 Translation updates 2005-02-11 11:53:32 +00:00
Bruce Momjian
8814ee8497 Update to Russian FAQ, HEAD and 8.0.X. 2005-02-11 04:54:05 +00:00
Bruce Momjian
538e960939 Mention that some psql environment variables come from libpq and note
more variables can be found in the libpq manual section.

Mention .pgpass in the psql manual page section dealing with connection
parameters and point to the libpq section for more details.

Backpatch to 8.0.X.
2005-02-11 04:19:18 +00:00
Tom Lane
9843862b50 Fix SPI cursor support to allow scanning the results of utility commands
that return tuples (such as EXPLAIN).  Per gripe from Michael Fuhr.
Side effect: fix an old bug that unintentionally disabled backward scans
for all SPI-created cursors.
2005-02-10 20:36:49 +00:00
Michael Meskes
95b40b7f77 Fixed more parsing bugs in other CREATE statements. 2005-02-10 08:07:46 +00:00
Bruce Momjian
7dfc700b96 Update pginstaller URL to http://www.postgresql.org/ftp/win32/.
Backpatch to 8.0.X.
2005-02-10 04:53:11 +00:00
Neil Conway
789aafebd5 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:27:24 +00:00
Michael Meskes
ef006ded8e Fixed bug in parsing of CREATE AS statement. 2005-02-09 11:28:21 +00:00
Tom Lane
ae50aa7ee8 If we're gonna check for array overrun, we really should do so before
overrunning the array, not after.
2005-02-08 18:21:59 +00:00
Neil Conway
6c5c748d64 Prevent 4 more buffer overruns in the PL/PgSQL parser. This is just a
minimally-invasive fix for stable branches; a cleaner fix will be
committed to HEAD soon.
2005-02-07 03:52:22 +00:00
Neil Conway
5b327fb917 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:36:10 +00:00
Tom Lane
c31570ed43 Document array behavior for out-of-range subscripts. 2005-02-06 20:59:37 +00:00
Tom Lane
0aeb7d8008 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:24 +00:00
Tom Lane
a7bbb6cd53 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:39:21 +00:00
Tom Lane
c8460d571e 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:30:12 +00:00
Tom Lane
f76390d75a Improve performance of fmgr.c calling routines for cases with more than
two arguments.  Per suggestions from A. Ogawa.
2005-02-02 22:40:19 +00:00
Tom Lane
388a42c515 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:49 +00:00
Bruce Momjian
722c886ba1 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:17:34 +00:00
Bruce Momjian
6aebc34e55 Backpatch FAQ to 8.0.X. 2005-02-02 17:44:51 +00:00
Bruce Momjian
8e2216db6c Backpatch FAQ to 8.0.X. 2005-02-02 13:42:02 +00:00
Neil Conway
a8daceaa15 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:29:13 +00:00
Tom Lane
914db10289 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:09:00 +00:00
Tom Lane
86206573ed 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:29 +00:00
Bruce Momjian
925320fe3d Backpatch FAQ changes to 8.0.X. 2005-02-01 02:42:03 +00:00
Tom Lane
b46fa4ba81 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:53 +00:00
Tom Lane
380c7117ef Recommend security@postgresql.org as the contact point for security-related bugs. 2005-01-30 21:31:57 +00:00
Tom Lane
8097ce9f52 Stamp 8.0 branch as 8.0.1. 2005-01-30 19:17:49 +00:00
Peter Eisentraut
372d78997c Translation updates 2005-01-30 15:47:30 +00:00
Bruce Momjian
caf48b43c7 Backpatch FAQ to 8.0.X. 2005-01-30 04:45:23 +00:00
Bruce Momjian
cd69dea6a0 FAQ markup fixes. 2005-01-30 04:44:25 +00:00
Bruce Momjian
bfdfa4d00d Backpatch FAQ to 8.0.X. 2005-01-30 04:26:40 +00:00
Bruce Momjian
8f2c03752b Backpatch FAQ changes to 8.0.X. 2005-01-30 04:22:53 +00:00
Tom Lane
426ccf86fa We haven't had a fixed limit on rule recursion depth since 7.3 ...
but the documentation still said so.
2005-01-29 23:45:53 +00:00
Tom Lane
d2190ad66e Make sure contrib C functions are marked strict where needed.
Kris Jurka
2005-01-29 22:35:17 +00:00
Tom Lane
d8595c9850 Add documentation for format_type(), which somehow escaped it before. 2005-01-28 23:13:26 +00:00
Tom Lane
49786de18e Add intset() to README (backpatch teodor's docs fix in HEAD). 2005-01-28 22:58:59 +00:00