Filter:

Commits in 2007

Commits788 commits of which 145 backported
0Author
788Committer
0Reviewer
0Reported by
0Co-author
CreditCommitBranchesThread(s)Committed
CommitterBackportedImprove a number of elog messages for not-supposed-to-happen cases in btrees, since these seem to happen after all in corrupted indexes. Make sure we supply the index name in all cases, and provide relevant block numbers where available. Also consistently identify the index name as such.
ac1ae9f2
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+18 more
No linked threadDec 31, 2007
CommitterUpdate examples in planstats.sgml for 8.3, and improve some aspects of that discussion. Add a link from perform.sgml.
f5678e8e
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 28, 2007
CommitterImprove consistency of error reporting in GUC assign_hook routines. Some were reporting ERROR for interactive assignments and LOG for other cases, some were saying nothing for non-interactive cases, and a few did yet other things. Make them use a new function GUC_complaint_elevel() to establish a reasonably uniform policy about how to report. There are still a few edge cases such as assign_search_path(), but it's much better than before. Per gripe from Devrim Gunduz and subsequent discussion.
5233dc15
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 28, 2007
CommitterDisallow digits and lower-case ASCII letters as the delimiter in non-CSV COPY. We need a restriction here because when the delimiter occurs as a data character, it is emitted with a backslash, and that will only work as desired if CopyReadAttributesText() will interpret the backslash sequence as representing the second character literally. This is currently untrue for 'b', 'f', 'n', 'r', 't', 'v', 'x', and octal digits. For future-proofing and simplicity of explanation, it seems best to disallow a-z and 0-9. We must also disallow dot, since "\." by itself would look like copy EOF. Note: "\N" is by default the null print string, so N would also cause a problem, but that is already tested for.
2e4cb708
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 27, 2007
CommitterFix ill-advised usage of x?y:z expressions in errmsg() and errhint() calls. This prevented gettext from recognizing the strings that need to be translated.
f1d1ca9a
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 27, 2007
CommitterSwap the order of testing for control characters and for column delimiter in CopyAttributeOutText(), so that control characters are converted to the C-style escape sequences even if they happen to be equal to the column delimiter (as is true by default for tab, for example). Oversight in my previous patch to restore pre-8.3 behavior of COPY OUT escaping. Per report from Tomas Szepe.
16adaf1b
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 27, 2007
CommitterFix a small typo, per Jan Urbanski
112c8555
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 21, 2007
CommitterWhen given a nonzero column number, pg_get_indexdef() is only supposed to print the index key variable or expression for that column. It was mistakenly printing ASC/DESC/NULLS FIRST/NULLS LAST decoration too --- and not only for the target column, but all columns. Someday we should have an option to extract that info (and the opclass decoration as well) for a single index column ... but today is not that day. Per bug #3829 and subsequent discussion.
ef6bac33
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 20, 2007
CommitterMake archiver process report its progress in PS display. Per proposal by Simon Riggs, though not exactly his patch.
5335fabe
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 18, 2007
CommitterBackportedMake path_recv() and poly_recv() reject paths/polygons containing no points. The zero-point case is sensible so far as the data structure is concerned, so maybe we ought to allow it sometime; but right now the textual input routines for these types don't allow it, and it seems that not all the functions for the types are prepared to cope. Report and patch by Merlin Moncure.
dbc632eb
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+21 more
No linked threadDec 18, 2007
CommitterSome desultory copy-editing on the backup/restore docs.
8e179aeb
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 17, 2007
CommitterMake an editorial pass over the newly SGML-ified contrib documentation. Fix lots of bad markup, bad English, bad explanations.
0e88fc08
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 16, 2007
CommitterImprove documentation about Julian dates; in particular, point out the difference between Julian and Gregorian reckoning of when JD 0 was.
164d255b
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 15, 2007
CommitterChange a couple of examples to say ALTER MAPPING instead of ADD MAPPING, per Oleg.
e211470b
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 13, 2007
CommitterImprove the method of localizing column names and other fixed strings in psql's \d commands and other uses of printQuery(). Previously we would pass these strings through gettext() and then send them to the server as literals in the SQL query. But the code was not set up to handle doubling of quotes in the strings, causing failure if a translation attempted to use the wrong kind of quote marks, as indeed is now the case for (at least) the French translation of \dFp. Another hazard was that gettext() would translate to whatever encoding was implied by the client's LC_CTYPE setting, which might be different from the client_encoding setting, which would probably cause the server to reject the query as mis-encoded. The new arrangement is to send the untranslated ASCII strings to the server, and do the translations inside printQuery() after the query results come back. Per report from Guillaume Lelarge and subsequent discussion.
df4271fe
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 12, 2007
CommitterClean up unportable attempt to use #if inside a macro call, also faulty code in third arm of #if. Per buildfarm reports.
286049db
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 12, 2007
CommitterChange 'merge sort join', a phrase we use nowhere else, to the more usual 'merge join'.
73d6eb24
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 12, 2007
CommitterMake documentation of -W options more accurate and uniform.
1ebff9ba
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 11, 2007
CommitterRemove the long-deprecated -u option from psql, since it does nothing very useful and confuses people who think it is the same as -U. (Eventually we might want to re-introduce it as being an alias for -U, but that should not happen until the switch has actually not been there for a few releases.) Likewise in pg_dump and pg_restore. Per gripe from Robert Treat and subsequent discussion.
1161f1ae
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 11, 2007
CommitterRemove the -P options of oid2name and pgbench, as they are security hazards. Instead teach these programs to prompt for a password when necessary, just like all our other programs. I did not bother to invent -W switches for them, since the return on investment seems so low.
4192f2d8
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 11, 2007
CommitterMake vacuumlo prompt for password when needed, thus making its -W switch optional, as is the case for every other one of our programs. I had already documented its -W as being optional, so this is bringing the code into line with the docs ...
5eb56611
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 11, 2007
CommitterMake an editorial pass over the newly SGML-ified contrib documentation. Fix lots of bad markup, bad English, bad explanations.
8828689a
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 10, 2007
CommitterFix attribution for Rime of the Ancient Mariner (obviously it's been too long since freshman English :-()
82ca4d02
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 10, 2007
CommitterThe E. J. Pratt verse used as a tsearch test case is unfortunately still under copyright in the US and many other places. Substitute a little something from a poet who's more safely dead. Per gripe from Bjorn Munch.
71e90b0d
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 09, 2007
CommitterFix bogus prompt for password in -u case. Per gripe from Robert Treat.
e8191d9f
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 09, 2007
CommitterFix up the PQconnectionUsedPassword mess: create a separate PQconnectionNeedsPassword function that tells the right thing for whether to prompt for a password, and improve PQconnectionUsedPassword so that it checks whether the password used by the connection was actually supplied as a connection argument, instead of coming from environment or a password file. Per bug report from Mark Cave-Ayland and subsequent discussion.
4f9bf7fc
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 09, 2007
CommitterFix completely-bogus volatility markings on pg_trgm functions.
cb1ab30f
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 09, 2007
CommitterFix mergejoin cost estimation so that we consider the statistical ranges of the two join variables at both ends: not only trailing rows that need not be scanned because there cannot be a match on the other side, but initial rows that will be scanned without possibly having a match. This allows a more realistic estimate of startup cost to be made, per recent pgsql-performance discussion. In passing, fix a couple of bugs that had crept into mergejoinscansel: it was not quite up to speed for the task of estimating descending-order scans, which is a new requirement in 8.3.
9fd88436
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 08, 2007
CommitterClean up a couple of problems in crosstab_hash's use of a hash table. The original coding leaked memory (at least 8K per crosstab_hash call) because it allowed the hash table to be allocated as a child of TopMemoryContext and then never freed it. Fix that by putting the hash table under per_query_ctx, instead. Also get rid of use of a static variable to point to the hash table. Aside from being ugly, that would actively do the wrong thing in the case of re-entrant calls to crosstab_hash, which are at least theoretically possible since it was expecting the static variable to stay valid across a SPI_execute call.
aaff0a55
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 07, 2007
CommitterAdd missing table entry for lastval(), per Jeff Davis.
f039a8cf
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 06, 2007
CommitterMake an editorial pass over the newly SGML-ified contrib documentation. Fix lots of bad markup, bad English, bad explanations.
53e99f57
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 06, 2007
CommitterCorrect misattribution of earthdistance module --- according to its old README file, Bruno Wolff did the bulk of the work, but for some reason only Hal Snyder was credited here.
9dd4d271
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 04, 2007
CommitterEntity-ify a passel of & < > characters. Per gripe from Devrim.
4c128303
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 03, 2007
CommitterFix build_minmax_path() to cope if an IS NULL clause turns up in the indexable-clauses list for a btree index. Formerly it just Asserted that all such clauses were opclauses, but that's no longer true in 8.3. Per bug #3796 from Matthias Schoeneich.
f538329f
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 03, 2007
CommitterRemove contrib/spi/preprocessor, which has been uninteresting ever since we supported standard FOREIGN KEY constraint syntax. It was harmless enough just sitting there, but the prospect of having to document it is surely more work than it's worth.
50eed107
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 03, 2007
CommitterImprove partitioning example, per Itagaki Takahiro.
57da4cca
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 03, 2007
CommitterRemove obsoleted README files.
531f5868
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 03, 2007
CommitterAdd SGML documentation for contrib/spi and contrib/test_parser. The spi documentation is pretty rudimentary, but it's a start.
53ae7acb
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 03, 2007
CommitterUpdate SGML contrib documentation to catch up with recent changes to the former README files. Albert Cervera i Areny
0d4c3855
master8.3rc1REL_19_STABLE8.3rc1REL_18_STABLE8.3rc1REL_17_STABLE8.3rc1REL_16_STABLE8.3rc1REL_15_STABLE8.3rc1REL_14_STABLE8.3rc1REL_13_STABLE8.3rc1+17 more
No linked threadDec 03, 2007
CommitterStamp 8.3beta4.
01434d41
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadDec 03, 2007
CommitterRevert COPY OUT to follow the pre-8.3 handling of ASCII control characters, namely that \r, \n, \t, \b, \f, \v are dumped as those two-character representations rather than a backslash and the literal control character. I had made it do the other to save some code, but this was ill-advised, because dump files in which these characters appear literally are prone to newline mangling. Fortunately, doing it the old way should only cost a few more lines of code, and not slow down the copy loop materially. Per bug #3795 from Lou Duchez.
a63b63ff
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadDec 03, 2007
CommitterEnsure that all <sect1> and <refentry> tags have IDs. This is needed to ensure that the resulting webpages have predictable URLs, instead of ever-changing numeric IDs. The new contrib docs were the biggest offender, but some old stuff had the problem too. Also, rename a couple of new contrib sgml files for consistency's sake.
3b3251cb
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadDec 02, 2007
CommitterRemove README files now migrated to SGML docs.
1308d6dd
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadDec 02, 2007
CommitterAdd SGML docs for contrib/dict_int and contrib/dict_xsyn. Albert Cervera i Areny
ec2ff520
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadDec 02, 2007
CommitterImprove the manual's discussion of partitioning. Recommend using a trigger instead of a rule to redirect insertions, use NEW.* notation where appropriate, some other updates and adjustments. David Fetter and Tom Lane
43da837e
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadDec 02, 2007
CommitterMention hash opclasses in 'System Dependencies on Operator Classes', which previously only talked about btree opclasses.
8ee07632
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadDec 02, 2007
CommitterSync release notes with CVS HEAD; various editorial improvements.
7cac3253
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadDec 02, 2007
CommitterCode review for LIKE ... INCLUDING INDEXES patch. Fix failure to propagate constraint status of copied indexes (bug #3774), as well as various other small bugs such as failure to pstrdup when needed. Allow INCLUDING INDEXES indexes to be merged with identical declared indexes (perhaps not real useful, but the code is there and having it not apply to LIKE indexes seems pretty unorthogonal). Avoid useless work in generateClonedIndexStmt(). Undo some poorly chosen API changes, and put a couple of routines in modules that seem to be better places for them.
265f904d
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadDec 01, 2007
CommitterBackportedSuppress compiler warnings in recent plperl patch. Avoid uselessly expensive lookup of the well-known OID of textout().
ba9da684
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+19 more
No linked threadDec 01, 2007
CommitterAvoid incrementing the CommandCounter when CommandCounterIncrement is called but no database changes have been made since the last CommandCounterIncrement. This should result in a significant improvement in the number of "commands" that can typically be performed within a transaction before hitting the 2^32 CommandId size limit. In particular this buys back (and more) the possible adverse consequences of my previous patch to fix plan caching behavior.
895a94de
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 30, 2007
CommitterRepair bug that allowed RevalidateCachedPlan to attempt to rebuild a cached plan before the effects of DDL executed in an immediately prior SPI operation had been absorbed. Per report from Chris Wood.
f0f18c70
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 30, 2007
CommitterMake a cleanup pass over error reports in tsearch code. Use ereport for user-facing errors, fix some poor choices of errcode, adhere to message style guide.
bb0e3011
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 28, 2007
CommitterImprove test coverage of CLOBBER_CACHE_ALWAYS by having it also force reloading of operator class information on each use of LookupOpclassInfo. Had this been in place a year ago, it would have helped me find a bug in the then-new 'operator family' code. Now that we have a build farm member testing CLOBBER_CACHE_ALWAYS on a regular basis, it seems worth expending a little bit of effort here.
03ffc4d6
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 28, 2007
CommitterAdjust the names of a couple of tsearch index support functions that had inappropriately generic-sounding names. This is more or less free since we already forced initdb for the next beta, and it may prevent confusion or name conflicts (particularly at the C-global-symbol level) down the road. Per my proposal yesterday.
11fccbea
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 28, 2007
CommitterInstall a lookaside cache to speed up repeated lookups of the same operator by short-circuiting schema search path and ambiguous-operator resolution computations. Remarkably, this buys as much as 45% speedup of repetitive simple queries that involve operators that are not an exact match to the input datatypes. It should be marginally faster even for exact-match cases, though I've not had success in proving an improvement in benchmark tests. Per report from Guillame Smet and subsequent discussion.
d54ca567
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 28, 2007
CommitterFix plpgsql to not lookup block labels except in contexts where a block label is sane (eg, EXIT argument or first part of a qualified identifier), and cause more-closely-nested record variables to take precedence over outer block labels. This cures the breakage exhibited by Marko Kreen that 8.3 no longer allowed a function's name to be used for a variable within the function, and makes plpgsql's handling of block labels more like Oracle's. It's important to fix this now because we are documenting the use of block labels as variable qualifiers for the first time in 8.3.
a54d3fb2
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 27, 2007
CommitterFix pg_regress to check the directory it is actually reading files from, not the image that (theoretically) should exist in the current directory.
42fd80de
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 27, 2007
CommitterAdd quote_literal(anyelement) to preserve (and, in fact, extend) a useful consequence of the former liberal implicit casting to text; namely that you can feed non-string values to quote_literal() and get unsurprising results. Per discussion.
3f899642
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 27, 2007
CommitterSuppress compiler warning.
66d7bbf6
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 27, 2007
CommitterFix select_common_type() so that it can select a domain type, if all inputs to a UNION, CASE, or related construct are of the same domain type. The main part of this routine smashes domains to their base types, which seems necessary because the logic involves TypeCategory() and IsPreferredType(), neither of which work usefully on domains. However, we can add a first pass that just detects whether all the inputs are exactly the same type, and if so accept that without question (so long as it's not UNKNOWN). Per recent gripe from Dean Rasheed.
07daff63
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 26, 2007
CommitterFix thinko in comment.
66b1f4da
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 25, 2007
CommitterReduce routine successful-archiving message from LOG to DEBUG1 grade, to reduce chattiness of logs. Per discussion. Simon Riggs
86be19bf
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 24, 2007
CommitterFix (I think) broken usage of MultiByteToWideChar. I had missed the subtlety that this function only returns a null terminator if it's fed input that includes one; which, in the usage here, it's not. This probably fixes bugs reported by Thomas Haegi.
ae3ff7ad
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 24, 2007
CommitterSlightly more paranoia and slightly better comments for use of Windows-specific MultiByteToWideChar/WideCharToMultiByte calls.
0f20e7a8
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 24, 2007
CommitterAdd missed entry for new money regression test.
ffd87212
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 24, 2007
CommitterMove resetting of currSchema to a spot where it's not vulnerable to getting missed in possible future partial-drop scenarios. Improve comment. Per report from Zoltan Boszormenyi.
229d406a
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 24, 2007
CommitterSave another little bit of planner overhead on simple queries, by having clauselist_selectivity skip some analysis that's useless when there's only one clause in the given list. Actually this can win even for not-so-simple queries, because we also apply clauselist_selectivity to sublists such as the quals matching an index; which are likely to have only a single entry even when the total query is quite complicated.
aca467b9
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 24, 2007
CommitterChange fix_scan_expr() to avoid copying the input node tree in the common case where rtoffset == 0. In that case there is no need to change Var nodes, and since filling in unset opfuncid fields is always safe, scribbling on the input tree to that extent is not objectionable. This brings the cost of this operation back down to what it was in 8.2 for simple queries. Per investigation of performance gripe from Guillaume Smet.
a36436ea
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 24, 2007
CommitterAvoid uselessly building a duplicate of the original clause in trivial cases where the EquivalenceClass machinery is unable to deduce anything more from a simple "var = const" qual clause. There are probably some more cases where this could be done, but this seems to take care of most of the added overhead for simple queries. Per gripe from Guillaume Smet.
92c0bf09
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 23, 2007
CommitterActually ... it's pretty silly that parse_oper.c doesn't set up the opfuncid of an OpExpr initially, considering that it has the information at hand already. We'll still treat opfuncid as a cache rather than a guaranteed-valid value, but this change saves one more syscache lookup in the normal code path.
ef48ed4c
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 22, 2007
CommitterSave one syscache lookup when examining volatility or strictness of OpExpr and related nodes. We're going to have to set the opfuncid of such nodes eventually (if we haven't already), so we might as well exploit the opportunity to cache the function OID. Buys back some of the extra planner overhead noted by Guillaume Smet, though I still need to fool with equivclass.c to really respond to that.
6342f36d
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 22, 2007
CommitterBackportedPrevent Perl from introducing a possibly-incompatible definition of type "bool" into plperl.c. This has always been a hazard since Perl allows a platform-specific choice to define bool as int rather than char, but evidently this didn't happen on any platform we support ... until OS X 10.5. Per report from Brandon Maust.
f608f3b8
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+20 more
No linked threadNov 22, 2007
CommitterClarify the syntax rules for raw tsvector input.
fec1d72d
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 21, 2007
CommitterFix bogus length calculation that could lead to crash if the string happened to be right up against the end of memory, per report from Matt Magoffin. While at it, avoid useless multiple copying of string by not depending on xmlStrncatNew.
d23ba77a
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 20, 2007
CommitterFix some missed usages of 'HTML tag' and 'HTML entity'.
e66d0c62
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 20, 2007
CommitterImprove description of implicit-text-casting compatibility issue. A bunch of other desultory copy-editing, too.
d4205295
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 19, 2007
CommitterMinor improvement in documentation of temp_tablespaces: avoid grammatical ambiguity and say what the default value is.
3ebb8867
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 19, 2007
CommitterRemove no-longer-accurate claim that REINDEX won't invalidate cached plans.
7129f26b
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 18, 2007
CommitterImprove GIN index build's tracking of memory usage by using GetMemoryChunkSpace, not just the palloc request size. This brings the allocatedMemory counter close enough to reality (as measured by MemoryContextStats printouts) that I think we can get rid of the arbitrary factor-of-2 adjustment that was put into the code initially. Given the sensitivity of GIN build to work memory size, not using as much of work memory as we're allowed to seems a pretty bad idea.
6f4cfe48
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 16, 2007
CommitterBackportedGIN index build's allocatedMemory counter needs to be long, not uint32. Else, in a 64-bit machine with maintenance_work_mem set to above 4Gb, the counter overflows and we never recognize having reached the maintenance_work_mem limit. I believe this explains out-of-memory failure recently reported by Sean Davis.
16dcd5e5
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+18 more
No linked threadNov 16, 2007
CommitterRepair still another bug in the btree page split WAL reduction patch: it failed for splits of non-leaf pages because in such pages the first data key on a page is suppressed, and so we can't just copy the first key from the right page to reconstitute the left page's high key. Problem found by Koichi Suzuki, patch by Heikki.
93190c30
master8.3beta4REL_19_STABLE8.3beta4REL_18_STABLE8.3beta4REL_17_STABLE8.3beta4REL_16_STABLE8.3beta4REL_15_STABLE8.3beta4REL_14_STABLE8.3beta4REL_13_STABLE8.3beta4+17 more
No linked threadNov 16, 2007
CommitterFix markup that doesn't work in HISTORY generation.
2f1e7ffb
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 16, 2007
CommitterRe-do configure with autoconf 2.59
7c0bc953
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 16, 2007
CommitterAdd a couple of notes pointing out that GIN index build time is very sensitive to maintenance_work_mem (something I just learned the hard way).
fb8b38e4
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 16, 2007
CommitterFix stupid typo in recently-added code :-(
eae7e00f
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 16, 2007
CommitterAdd snb_ru_init(internal) to list of stub functions in tsearch2 compatibility module. Needed to support loading of 8.1-era tsearch2 configuration data.
f00d75b8
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 16, 2007
CommitterUse ftruncate() not truncate() in mdunlink. Seems Windows doesn't support the latter.
591b9b09
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 15, 2007
CommitterBackportedUpdate timezone data files to release 2007i of the zic database.
d788c922
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+20 more
No linked threadNov 15, 2007
CommitterPrevent re-use of a deleted relation's relfilenode until after the next checkpoint. This guards against an unlikely data-loss scenario in which we re-use the relfilenode, then crash, then replay the deletion and recreation of the file. Even then we'd be OK if all insertions into the new relation had been WAL-logged ... but that's not guaranteed given all the no-WAL-logging optimizations that have recently been added.
6cc4451b
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 15, 2007
CommitterAdjust example to reduce confusion between a tsvector column and an index, per Simon.
a1715ac8
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 14, 2007
CommitterAdd a rank/(rank+1) normalization option to ts_rank(). While the usefulness of this seems a bit marginal, if it's useful enough to be shown in the manual then we probably ought to support doing it without double evaluation of the ts_rank function. Per my proposal earlier today.
866bad95
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 14, 2007
CommitterFix incorrect calculation of elapsed_xlogs. Itagaki Takahiro
5858990f
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 14, 2007
CommitterAdd an Accept parameter to "simple" dictionaries. The default of true gives the old behavior; selecting false allows the dictionary to be used as a filter ahead of other dictionaries, because it will pass on rather than accept words that aren't in its stopword list. Jan Urbanski
ca450a07
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 14, 2007
CommitterUpdate discussion of tsearch2 migration. I'm not entirely sure about the division of material between here and the tsearch2 contrib page, but at least it's not obviously unfinished any more.
de085820
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 14, 2007
CommitterMove contrib docs to an appendix (next door to External Projects). Change title to Additional Supplied Modules. Improve discussion of how to build and install 'em.
42e3ab3f
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 14, 2007
CommitterClean up some now-obsolete references to GBorg.
21fec149
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 14, 2007
CommitterAdd some quick documentation for tsearch2 compatibility module.
4c2d0cd5
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 14, 2007
CommitterClean up some stray references to tsearch2.
b40c0a4b
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 13, 2007
Committercontrib/tsearch2 need not be special-cased any longer.
07c23731
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 13, 2007
CommitterResurrect the code for the rewrite(ARRAY[...]) aggregate function, and put it into contrib/tsearch2 compatibility module.
4394c1b0
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 13, 2007
CommitterOoops, missed one file to remove.
abd183e4
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 13, 2007
CommitterUpdate description of contrib/tsearch2.
7341a0a0
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 13, 2007
CommitterRe-add contrib/tsearch2 to the set of buildable contrib modules.
f8525209
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 13, 2007
CommitterReplace the now-incompatible-with-core contrib/tsearch2 module with a compatibility package. This supports importing dumps from past versions using tsearch2, and provides the old names and API for most functions that were changed. (rewrite(ARRAY[...]) is a glaring omission, though.)
90e3f2ac
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 13, 2007
CommitterFix a few contrib regression test scripts that hadn't gotten the word about best practice for including the module creation scripts: to wit that you should suppress NOTICE messages. This avoids creating regression failures by adding or removing comment lines in the module scripts.
30e2c42e
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 13, 2007
CommitterFix more script breakage.
1afbbcac
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 13, 2007
CommitterFix insufficient search-path paranoia in SQL function definitions. Remove setting of search_path in install/uninstall scripts, since unlike other contrib modules this one does not want to let you change the installation schema.
e0b15e27
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 13, 2007
CommitterUndo damage from yesterday's script "cleanup".
15fecdec
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 13, 2007
CommitterI find that an out-of-the-box installation of OSSP uuid 1.6.0 installs itself as libuuid, not libossp-uuid which was the only case expected by our build support. Install a configure test to determine which name to use (and to check that the library is present at all).
1ef648cf
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 13, 2007
CommitterEnsure that typmod decoration on a datatype name is validated in all cases, even in code paths where we don't pay any subsequent attention to the typmod value. This seems needed in view of the fact that 8.3's generalized typmod support will accept a lot of bogus syntax, such as "timestamp(foo)" or "record(int, 42)" --- if we allow such things to pass without comment, users will get confused. Per a recent example from Greg Stark.
0bd4da23
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 11, 2007
CommitterAdd an example of a SQL function with output parameters returning multiple rows. I had thought this case was covered, but there was no example in the obvious section to look in.
c6722d72
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 10, 2007
CommitterAdd missing closing / in xsd:restriction, and remove some unnecessary spaces for consistency. Per bug #3734 from Ben Leslie; fix by Euler Taveira de Oliveira.
2b477a2c
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 10, 2007
CommitterxmlGetUTF8Char()'s second argument is both input and output. Fix uninitialized value, and avoid invoking the function nine separate times in the pg_xmlIsNameChar macro. Should resolve buildfarm failures. Per report from Ben Leslie.
d2d52bbb
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 10, 2007
CommitterRecognize RETURN QUERY via a textual test, so that QUERY doesn't need to be a plpgsql keyword. This avoids springing a new reserved word on plpgsql programmers. For consistency, handle RETURN NEXT the same way.
e5fe2e84
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 09, 2007
CommitterAdd an expected-results file to get regression to pass cleanly in sv_SE locale, which sorts a bit differently. Per recent gripe from Magnus.
08330811
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 09, 2007
CommitterClean up ts_locale.h/.c. Fix broken and not-consistent-across-platforms behavior of wchar2char/char2wchar; this should resolve bug #3730. Avoid excess computations of pg_mblen in t_isalpha and friends. Const-ify APIs where possible.
654dcfb9
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 09, 2007
CommitterBackportedSecond pass at improving LIKE/regex estimation in non-C locales. It turns out that it's actually quite likely that a string that is an extension of the given prefix will sort as larger than the "greater" string our previous code created. To provide some defense against that, do the comparisons against a modified string instead of just the bare prefix. We tack on "Z", "z", "y", or "9", whichever is seen as largest in the current locale. Testing suggests that this is sufficient at least for cases involving ASCII data.
a96fa850
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+19 more
No linked threadNov 09, 2007
CommitterBackportedIf an index depends on no columns of its table, give it a dependency on the whole table instead, to ensure that it goes away when the table is dropped. Per bug #3723 from Sam Mason.
c293ba9e
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+21 more
No linked threadNov 08, 2007
CommitterFix EquivalenceClass code to handle volatile sort expressions in a more predictable manner; in particular that if you say ORDER BY output-column-ref, it will in fact sort by that specific column even if there are multiple syntactic matches. An example is SELECT random() AS a, random() AS b FROM ... ORDER BY b, a; While the use-case for this might be a bit debatable, it worked as expected in earlier releases, so we should preserve the behavior for 8.3. Per my recent proposal.
c291203c
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 08, 2007
CommitterLast week's patch for make_sort_from_pathkeys wasn't good enough: it has to be able to discard top-level RelabelType nodes on *both* sides of the equivalence-class-to-target-list comparison, since make_pathkey_from_sortinfo might either add or remove a RelabelType. Also fix the latter to do the removal case cleanly. Per example from Peter.
1be06016
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 08, 2007
CommitterBackportedImprove the performance of LIKE/regex estimation in non-C locales, by making make_greater_string() try harder to generate a string that's actually greater than its input string. Before we just assumed that making a string that was memcmp-greater was enough, but it is easy to generate examples where this is not so when the locale is not C. Instead, loop until the relevant comparison function agrees that the generated string is greater than the input.
2de946be
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+19 more
No linked threadNov 07, 2007
CommitterBackportedFix patternsel() and callers to do the right thing for NOT LIKE and the other negated-match operators. patternsel had been using the supplied operator as though it were a positive-match operator, and thus obtaining a wrong result, which was even more wrong after the caller subtracted it from 1. Seems cleanest to give patternsel an explicit "negate" argument so that it knows what's going on. Also install the same factorization scheme for pattern join selectivity estimators; even though they are just stubs at the moment, this may keep someone from making the same type of mistake when they get filled out. Per report from Greg Mullane.
95422871
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+18 more
No linked threadNov 07, 2007
CommitterSome code review for xml.c: Add some more xml_init() calls that might not be necessary, but seem like a good idea to avoid possible problems like we saw in xmlelement(). Fix unsafe assumption that you can keep using the tupledesc of a relcache entry you don't have open. Add missing error checks for SearchSysCache failure. Get rid of handwritten array traversal in xpath() and O(N^2), broken-for-nulls array access code in map_sql_value_to_xml_value(), in favor of using deconstruct_array. Manually adjust a lot of line breaks in places where the code is otherwise gonna look pretty awful after pg_indent hacks it up (original author seems to have liked to lay out code for a 200-column window).
5e512971
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 06, 2007
CommitterFix xmlelement() to initialize libxml correctly before using it, and to avoid assuming that evaluation of its input expressions won't change the state of libxml. This requires refactoring xml_init() to not call xmlInitParser(), since now not all of its callers want that. I also tweaked things to avoid repeated execution of one-time-only tests inside xml_init(), though this is mostly for clarity rather than in hopes of saving any noticeable amount of runtime. Per report from Sheikh Amjad and subsequent discussion. In passing, fix a couple of inadequately schema-qualified queries.
85f807d7
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 05, 2007
CommitterFix deprecated-by-C-spec usage: storage class should come before const decoration. Zdenek Kotala
bcb3852c
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 05, 2007
CommitterImprove conversion of legacy CREATE CONSTRAINT TRIGGER representation of foreign keys, one more time. Insist on matching up all three triggers before we create a constraint; this will avoid creation of duplicate constraints in scenarios where a broken FK constraint was repaired by re-adding the constraint without removing the old partial trigger set. Basically, this will work nicely in all cases where the FK was actually functioning correctly in the database that was dumped. It will fail to restore an FK in just one case where we theoretically could restore it: where we find the referenced table's triggers and not the referencing table's trigger. However, in such a scenario it's likely that the user doesn't even realize he still has an FK at all (since the more-likely-to-fail cases aren't enforced), and we'd probably not accomplish much except to cause the reload to fail because the data doesn't meet the FK constraint. Also make the NOTICE logging still more verbose, by adding detail about which of the triggers were found. This seems about all we can do without solving the problem of getting the user's attention at session end.
df870740
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 05, 2007
CommitterMinor editorial improvements to txid functions' documentation: put back some text that got dropped, improve markup, improve descriptions of snapshot components.
faac769a
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 05, 2007
CommitterAdd a note about another issue that needs to be considered before changing the TOAST size thresholds.
a06ce21c
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 05, 2007
CommitterMinor improvements to code for converting legacy CREATE CONSTRAINT TRIGGER commands into proper foreign-key constraints. Believe the constraint name given in the trigger arguments in preference to the trigger name --- to judge from Olivier Prenant's example, pg_dump must at some time have used the autogenerated trigger name there, though AFAICT no current release branch tip does. Improve the emitted NOTICEs to provide more detail (PK table's name and column names). Handle the case where pg_dump forgot to provide the FROM table (a bug that never did get fixed in 7.0.x apparently). This commit doesn't do anything about the question of what to do with incomplete trigger groups.
5e0377ae
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 04, 2007
CommitterPrevent continuing disk-space bloat when profiling (with PROFILE_PID_DIR enabled) and autovacuum is on. Since there will be a steady stream of autovac worker processes exiting and dropping gmon.out files, allowing them to make separate subdirectories results in serious bloat; and it seems unlikely that anyone will care about those profiles anyway. Limit the damage by forcing all autovac workers to dump in one subdirectory, PGDATA/gprof/avworker/.
69500b05
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 04, 2007
CommitterTeach CREATE CONSTRAINT TRIGGER to convert old-style foreign key trigger definitions into regular foreign key constraints. This seems necessary given that some people evidently never did get around to running adddepend on their schemas, and without some sort of hack the old definitions will no longer work. Per report from Olivier Prenant and subsequent investigation.
a2899ebd
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 04, 2007
CommitterEnsure that EquivalenceClasses generated from ORDER BY keys contain proper RelabelType nodes when the sort key is binary-compatible with the sort operator rather than having exactly its input type. We did this correctly for index columns but not sort keys, leading to failure to notice that a varchar index matches an ORDER BY request. This requires a bit more work in make_sort_from_pathkeys, but not anyplace else that I can find. Per bug report and subsequent discussion.
97ddfc96
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 02, 2007
CommitterSome corrections/improvements to new acronym list.
9423be44
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 01, 2007
CommitterUpdate shared-memory-size info for 8.2 branch.
132b004d
REL8_2_STABLE8.2.6
No linked threadNov 01, 2007
CommitterUpdate discussion of shared memory sizing for 8.3: adjust multipliers, mention autovacuum_max_workers. Minor copy-editing too.
388c7e28
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadNov 01, 2007
CommitterUpdate some obsolete stuff in the GRANT and REVOKE reference pages: simplify the syntax examples by unifying user and group cases, and fix no-longer-correct example of psql \z output. Per Erwin Brandstetter.
406ee67c
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadOct 30, 2007
CommitterAdd a note pointing out that some other databases make GREATEST and LEAST handle NULL arguments differently than we do. Per a discussion on 30-Jun that somehow didn't get done.
897313e8
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadOct 30, 2007
CommitterMention the index name in 'could not create unique index' errors, per suggestion from Rene Gollent.
2aae35d0
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadOct 29, 2007
CommitterRemove the hack in the grammar that "optimized away" DEFAULT NULL clauses. Instead put in a test to drop a NULL default at the last moment before storing the catalog entry. This changes the behavior in a couple of ways: * Specifying DEFAULT NULL when creating an inheritance child table will successfully suppress inheritance of any default expression from the parent's column, where formerly it failed to do so. * Specifying DEFAULT NULL for a column of a domain type will correctly override any default belonging to the domain; likewise for a sub-domain. The latter change happens because by the time the clause is checked, it won't be a simple null Const but a CoerceToDomain expression.
b17b7fae
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadOct 29, 2007
CommitterRemove claim that ts_headline knows how to generate multiple ellipsis-separated excerpts of a document. That's clearly desirable, but the functionality is not there yet.
f9e83a55
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadOct 29, 2007
CommitterOoops, fat-fingered last commit message. Should have mentioned updating FAQ_IRIX for information about buggy MIPSPro compiler version, now confirmed by Herve Boulouis.
3fe26620
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadOct 28, 2007
CommitterFAQ_IRIX
d034a268
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadOct 28, 2007
CommitterMake pg_dump and friends consistently report both the filename and the errno string when complaining of fopen failures. Per gripe from Bob Pawley, it's not always instantly obvious to the user which name we tried to open.
27c033ed
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadOct 28, 2007
CommitterBackportedFix a couple of issues with pg_dump's handling of inheritance child tables that have default expressions different from their parent. First, if the parent table's default expression has to be split out as a separate ALTER TABLE command, we need a dependency constraint to ensure that the child's command is given second. This is because the ALTER TABLE on the parent will propagate to the child. (We can't prevent that by using ONLY on the parent's command, since it's possible that other children exist that should receive the inherited default.) Second, if the child has a NULL default where the parent does not, we have to explicitly say DEFAULT NULL on the child in order for this state to be preserved after reload. (The latter actually doesn't work right because of a backend bug, but that is a separate issue.)
006f42c7
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+20 more
No linked threadOct 28, 2007
CommitterChange text search parsing rules for hyphenated words so that digit strings containing decimal points aren't considered part of a hyphenated word. Sync the hyphenated-word lookahead states with the subsequent part-by-part reparsing states so that we don't get different answers about how much text is part of the hyphenated word. Per my gripe of a few days ago.
73e6f9d3
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadOct 27, 2007
CommitterAdd some rudimentary tracing code to the default text search parser, to help in debugging its state-machine rules. Const-ify all the constant tables. Minor other code cleanup, including using "token" rather than "lexeme" to describe the output strings.
1aaf39bd
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadOct 27, 2007
CommitterRename default text search parser's "uri" token type to "url_path", per recommendation from Alvaro. This doesn't force initdb since the numeric token type in the catalogs doesn't change; but note that the expected regression test output changed.
d015d08b
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadOct 27, 2007
CommitterAvoid considering both sort directions as equally useful for merging. This doubles the planning workload for mergejoins while not actually accomplishing much. The only useful case is where one of the directions matches the query's ORDER BY request; therefore, put a thumb on the scales in that direction, and otherwise arbitrarily consider only the ASC direction. (This is a lot easier now than it would've been before 8.3, since we have more semantic knowledge embedded in PathKeys now.)
834ddc62
master8.3beta3REL_19_STABLE8.3beta3REL_18_STABLE8.3beta3REL_17_STABLE8.3beta3REL_16_STABLE8.3beta3REL_15_STABLE8.3beta3REL_14_STABLE8.3beta3REL_13_STABLE8.3beta3+17 more
No linked threadOct 27, 2007
CommitterStamp 8.3beta2.
5b5a70ae
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 27, 2007
CommitterMinor wording improvements per suggestion from Jeff Davis. Also tweak hyphenated-word parser examples per earlier discussion with Alvaro.
2aac6f10
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 27, 2007
CommitterBackportedChange have_join_order_restriction() so that we do not force a clauseless join if either of the input relations can legally be joined to any other rels using join clauses. This avoids uselessly (and expensively) considering a lot of really stupid join paths when there is a join restriction with a large footprint, that is, lots of relations inside its LHS or RHS. My patch of 15-Feb-2007 had been causing the code to consider joining *every* combination of rels inside such a group, which is exponentially bad :-(. With this behavior, clauseless bushy joins will be done if necessary, but they'll be put off as long as possible. Per report from Jakub Ouhrabka.
cd2a2ce9
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+18 more
No linked threadOct 26, 2007
CommitterAvoid having backend-only code compiled into ecpg. Per Zdenek Kotala
462227dc
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 26, 2007
CommitterAvoid including any backend-only stuff in the zic utility program. Per gripe from Zdenek Kotala, though not exactly his patch.
8164fb88
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 26, 2007
CommitterMake initdb's selection of default text search configuration depend only on the 'language' part of the locale name, ignoring the country code. We may need to be smarter later when there are more built-in configurations, but for now this is good enough and avoids having to bloat the table.
48c16e14
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 25, 2007
CommitterUgly patch to make ALTER SEQUENCE OWNED BY not affect the currval() state of the sequence. Since OWNED BY never existed before 8.2, this seems unlikely to create any compatibility issues. Other forms of ALTER SEQUENCE continue to do what they did before, namely update currval to match the sequence's actual last_val. That seems wrong on consideration, but we'll not change it in a minor release --- 8.3 will make that fix.
9f330985
REL8_2_STABLE8.2.6
No linked threadOct 25, 2007
CommitterFix ALTER SEQUENCE so that it does not affect the value of currval() for the sequence. Also, make setval() with is_called = false not affect the currval state, either. Per report from Kris Jurka that an implicit ALTER SEQUENCE OWNED BY unexpectedly caused currval() to become valid. Since this isn't 100% backwards compatible, it will go into HEAD only; I'll put a more limited patch into 8.2.
9ddfe034
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 25, 2007
CommitterTweak new error messages to match the actual syntax of DECLARE CURSOR. (Last night I copied-and-pasted from the WITH HOLD case, but that's wrong because of the bizarrely irregular syntax specified by the standard.)
fcc20bd4
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 25, 2007
CommitterDisallow scrolling of FOR UPDATE/FOR SHARE cursors, so as to avoid problems in corner cases such as re-fetching a just-deleted row. We may be able to relax this someday, but let's find out how many people really care before we invest a lot of work in it. Per report from Heikki and subsequent discussion.
048efc25
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 24, 2007
CommitterRemove obsolete statement that you can't update through a cursor.
8a35b07e
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 24, 2007
CommitterBackportedFix an error in make_outerjoininfo introduced by my patch of 30-Aug: the code neglected to test whether an outer join's join-condition actually refers to the lower outer join it is looking at. (The comment correctly described what was supposed to happen, but the code didn't do it...) This often resulted in adding an unnecessary constraint on the join order of the two outer joins, which was bad enough. However, it also seems to expose a performance problem in an older patch (from 15-Feb): once we've decided that there is a join ordering constraint, we will start trying clauseless joins between every combination of rels within the constraint, which pointlessly eats up lots of time and space if there are numerous rels below the outer join. That probably needs to be revisited :-(. Per gripe from Jakub Ouhrabka.
3ef18797
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+18 more
No linked threadOct 24, 2007
CommitterFix UPDATE/DELETE WHERE CURRENT OF to support repeated update and update- then-delete on the current cursor row. The basic fix is that nodeTidscan.c has to apply heap_get_latest_tid() to the current-scan-TID obtained from the cursor query; this ensures we get the latest row version to work with. However, since that only works if the query plan is a TID scan, we also have to hack the planner to make sure only that type of plan will be selected. (Formerly, the planner might decide to apply a seqscan if the table is very small. This change is probably a Good Thing anyway, since it's hard to see how a seqscan could really win.) That means the execQual.c code to support CurrentOfExpr as a regular expression type is dead code, so replace it with just an elog(). Also, add regression tests covering these cases. Note that the added tests expose the fact that re-fetching an updated row misbehaves if the cursor used FOR UPDATE. That's an independent bug that should be fixed later. Per report from Dharmendra Goyal.
c29a9c37
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 24, 2007
CommitterKeep heap_page_prune from marking the buffer dirty when it didn't really change anything. Per report from Itagaki Takahiro. Fix by Pavan Deolasee.
9226ba81
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 24, 2007
CommitterSet read_only = TRUE while evaluating input queries for ts_rewrite() and ts_stat(), per my recent suggestion. Also add a possibly-not-needed- but-can't-hurt check for NULL SPI_tuptable, before we try to dereference same.
1c927249
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 24, 2007
CommitterRemove the aggregate form of ts_rewrite(), since it doesn't work as desired if there are zero rows to aggregate over, and the API seems both conceptually and notationally ugly anyway. We should look for something that improves on the tsquery-and-text-SELECT version (which is also pretty ugly but at least it works...), but it seems that will take query infrastructure that doesn't exist today. (Hm, I wonder if there's anything in or near SQL2003 window functions that would help?) Per discussion.
592c88a0
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 24, 2007
CommitterMake configure probe for the location of the <uuid.h> header file. Needed to accommodate different layout on some platforms (Debian for one). Heikki Linnakangas
07d0a370
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 23, 2007
CommitterRename and slightly redefine the default text search parser's "word" categories, as per discussion. asciiword (formerly lword) is still ASCII-letters-only, and numword (formerly word) is still the most general mixed-alpha-and-digits case. But word (formerly nlword) is now any-group-of-letters-with-at-least-one-non-ASCII, rather than all-non-ASCII as before. This is no worse than before for parsing mixed Russian/English text, which seems to have been the design center for the original coding; and it should simplify matters for parsing most European languages. In particular it will not be necessary for any language to accept strings containing digits as being regular "words". The hyphenated-word categories are adjusted similarly.
dbaec70c
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 23, 2007
CommitterFix two-argument form of ts_rewrite() so it actually works for cases where a later rewrite rule should change a subtree modified by an earlier one. Per my gripe of a few days ago.
12f25e70
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 23, 2007
CommitterFix several bugs in tsvectorin, including crash due to uninitialized field and miscomputation of required palloc size. The crash could only occur if the input contained lexemes both with and without positions, which is probably not common in practice. The miscomputation would definitely result in wasted space. Also fix some inconsistent coding around alignment of strings and positions in a tsvector value; these errors could also lead to crashes given mixed with/without position data and a machine that's picky about alignment. And be more careful about checking for overflow of string offsets.
bb36c51f
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 23, 2007
CommitterClarify example of planner cost computation, per a suggestion from James Shaw. Also update a couple of examples to reflect 8.3's improved plan-printing code.
f5513484
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 22, 2007
CommitterAdjust ts_debug's output as per my proposal of yesterday: show the active dictionary and its output lexemes as separate columns, instead of smashing them into one text column, and lowercase the column names. Also, define the output rowtype using OUT parameters instead of a composite type, to be consistent with the other built-in functions.
3e17ef1c
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 22, 2007
CommitterBe careful to get share lock on each page before computing its free space. ITAGAKI Takahiro
7ec280e1
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 22, 2007
CommitterRemove an Assert that's been obsoleted by recent changes in the parsetree representation of DECLARE CURSOR. Report and fix by Heikki.
88ae1bd3
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 22, 2007
CommitterCreate a quick-and-dirty list of known migration issues for pre-8.3 users of tsearch. This isn't meant to be permanent documentation, but to call out the areas that need either fixing or real documentation.
6088bfb8
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 22, 2007
CommitterAdd a useless return statement to suppress a warning seen with some versions of gcc (I'm seeing it with Apple's gcc 4.0.1). I think the reason we did not see this before was that the assert() macros in the regex code were all no-ops till recently.
f1c87830
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 22, 2007
CommitterFix shared tsvector/tsquery input code so that we don't say "syntax error in tsvector" when we are really parsing a tsquery. Report the bogus input, too. Make styles of some related error messages more consistent.
1ea47dd8
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 21, 2007
CommitterEditorial overhaul for text search documentation. Organize the info more clearly, improve a lot of unclear descriptions, add some missing material. We still need a migration guide though.
dfc6f130
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 21, 2007
CommitterAdjust error message to agree with documentation. The tsearch documentation uniformly calls these things weights, not classes.
531ead8a
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 20, 2007
CommitterAdd a note pointing out that you can't log to syslog without tweaking the syslog configuration file (at least not on most known Unixen). I dunno why we hadn't had that info in the docs all along ...
41a312a1
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 20, 2007
CommitterFound another small glitch in tsearch API: the two versions of ts_lexize() are really redundant, since we invented a regdictionary alias type. We can have just one function, declared as taking regdictionary, and it will handle both behaviors. Noted while working on documentation.
638bd34f
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 19, 2007
Committerts_rewrite() does not return a set, only one row; fix mislabeling in pg_proc.h.
ba6b0bfd
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 19, 2007
CommitterAdd missing entry for PG_WIN1250 encoding, per gripe from Pavel Stehule. Also enable translation of PG_WIN874, which certainly seems to have an obvious translation now, though maybe it did not at the time this table's ancestor was created.
26cbf791
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 17, 2007
CommitterAnother round of editorialization on the text search documentation. Notably, standardize on using "token" for the strings output by a parser, while "lexeme" is reserved for the normalized strings produced by a dictionary.
6efae5bf
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 17, 2007
CommitterUse 'token' not 'lexeme' to describe the output of a parser.
2011bebc
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 16, 2007
CommitterTweak toast-related logic in heapam.c so that the toaster is only invoked when relkind = RELKIND_RELATION. This syncs these tests with the Asserts in tuptoaster.c, and ensures that we won't ever try to, for example, compress a sequence's tuple. Problem found by Greg Stark while stress-testing with much-smaller-than-normal page sizes.
56303abf
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 16, 2007
CommitterTeach pgxs.mk and Install.pm how to install files from a contrib module into SHAREDIR/tsearch_data. Use this instead of ad-hoc coding in dict_xsyn/Makefile. Should fix current ContribCheck failures on MSVC.
9a4b29d8
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 16, 2007
CommitterFix pg_wchar_table[] to match revised ordering of the encoding ID enum. Add some comments so hopefully the next poor sod doesn't fall into the same trap. (Wrong comments are worse than none at all...)
febd60bf
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 15, 2007
CommitterRemove obsolete examples of add-on parsers and dictionary templates; these are more easily and usefully maintained as contrib modules. Various other wordsmithing, markup improvement, etc.
4b21d1f0
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 15, 2007
CommitterAdd sample text search dictionary templates and parsers, to replace the hard-to-maintain textual examples currently in the SGML docs. From Sergey Karpov.
5fcb0798
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 15, 2007
CommitterBack-patch some plpython patches previously made only in HEAD: changes of 3-Apr and 4-Apr to declare interface functions properly and eliminate casts, thereby fixing potential problems on 64-bit machines; and changes of 13-Jul to volatile-qualify some variables to suppress compiler warnings. Per discussion, we're only worrying about Python 2.5 in PG 8.2 and up, so no need to patch further back.
9632b06e
REL8_2_STABLE8.2.6
No linked threadOct 15, 2007
CommitterInclude NOLOGIN roles in the 'flat' password file. In the original coding this was seen as useless, but the problem with not including them is that the error message will often be something about authentication failure, rather than the more helpful one about 'role is not permitted to log in'. Per discussion.
fb631dba
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 15, 2007
Committermake install is supposed to install everything under src/include/, but it was missing a bunch of recently-added subdirectories.
7cf3ff10
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 14, 2007
CommitterOoops, forgot about adding -DFRONTEND.
cd8e1f50
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 13, 2007
CommitterMigrate the former contrib/txid module into core. This will make it easier for Slony and Skytools to depend on it. Per discussion.
18e3fcc3
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 13, 2007
CommitterRemove contrib/txid, in preparation for migrating it into core.
17333b6d
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 13, 2007
CommitterTry to fix msvc build for recent initdb changes.
041a8b37
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 13, 2007
CommitterStrengthen type_sanity's check on pg_type.typarray. It failed to complain about types that didn't have typarray set. Noted while working on txid patch.
2ffc0e88
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 13, 2007
CommitterGuard against possible double free during error escape from XML functions. Patch for the reported issue from Kris Jurka, some other potential trouble spots plugged by Tom.
ff1de5ce
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 13, 2007
CommitterFix the inadvertent libpq ABI breakage discovered by Martin Pitt: the renumbering of encoding IDs done between 8.2 and 8.3 turns out to break 8.2 initdb and psql if they are run with an 8.3beta1 libpq.so. For the moment we can rearrange the order of enum pg_enc to keep the same number for everything except PG_JOHAB, which isn't a problem since there are no direct references to it in the 8.2 programs anyway. (This does force initdb unfortunately.)
8468146b
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 13, 2007
CommitterBackportedFix ALTER COLUMN TYPE to preserve the tablespace and reloptions of indexes it affects. The original coding neglected tablespace entirely (causing the indexes to move to the database's default tablespace) and for an index belonging to a UNIQUE or PRIMARY KEY constraint, it would actually try to assign the parent table's reloptions to the index :-(. Per bug #3672 and subsequent investigation.
537e92e4
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+20 more
No linked threadOct 13, 2007
CommitterTeach planagg.c that partial indexes specifying WHERE foo IS NOT NULL can be used to perform MIN(foo) or MAX(foo), since we want to discard null rows in the indexscan anyway. (This would probably fall out for free if we were injecting the IS NOT NULL clause somewhere earlier, but given the current anatomy of the MIN/MAX optimization code we have to do it explicitly. Fortunately, very little added code is needed.) Per a discussion with Henk de Wit.
106264ca
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 13, 2007
CommitterWhen telling the bgwriter that we need a checkpoint because too much xlog has been consumed, recheck against the latest value of RedoRecPtr before really sending the signal. This avoids useless checkpoint activity if XLogWrite is executed when we have a very stale local copy of RedoRecPtr. The potential for useless checkpoint is very much worse in 8.3 because of the walwriter process (which never does XLogInsert), so while this behavior was intentional, it needs to be changed. Per report from Itagaki Takahiro.
5c8eb929
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 12, 2007
CommitterRemove hack in pg_tablespace_aclmask() that disallowed permissions on pg_global even to superusers, and replace it with checks in various other places to complain about invalid uses of pg_global. This ends up being a bit more code but it allows a more specific error message to be given, and it un-breaks pg_tablespace_size() on pg_global. Per discussion.
6daef2bc
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 12, 2007
CommitterBackportedEnsure that the result of evaluating a function during constant-expression simplification gets detoasted before it is incorporated into a Const node. Otherwise, if an immutable function were to return a TOAST pointer (an unlikely case, but it can be made to happen), we would end up with a plan that depends on the continued existence of the out-of-line toast datum.
2b0c86b6
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+22 more
No linked threadOct 11, 2007
CommitterCode review for txid patch: add binary I/O functions, avoid dependence on SerializableSnapshot, minor other cleanup. Marko Kreen, some further editorialization by me.
d77717ba
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 11, 2007
CommitterRemove incorrect use of VARSIZE() on a toasted datum. We can just remove it instead of fix it, since once we've set toast_action[i] to 'p' it no longer matters what toast_sizes[i] is. Greg Stark
56b7695c
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 11, 2007
CommitterFix the plan-invalidation mechanism to treat regclass constants that refer to a relation as a reason to invalidate a plan when the relation changes. This handles scenarios such as dropping/recreating a sequence that is referenced by nextval('seq') in a cached plan. Rather than teach plancache.c all about digging through plan trees to find regclass Consts, we charge the planner's setrefs.c with making a list of the relation OIDs on which each plan depends. That way the list can be built cheaply during a plan tree traversal that has to happen anyway. Per bug #3662 and subsequent discussion.
82d8ab6f
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 11, 2007
CommitterFaster test for overflow in str2txid, from Marko.
9f3bd299
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 08, 2007
CommitterGet rid of dependency on strtoull() --- Marko Kreen. Some additional minor editorializing by Tom.
b196b7fb
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 08, 2007
CommitterMake dumpcolors() have tolerable performance when using 32-bit chr, as we do (and upstream Tcl doesn't). The loop limit might be subject to negotiation if anyone ever tries to do regex debugging in Far Eastern languages, but for now 1000 seems plenty. CHR_MAX was right out :-(
298c4575
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 06, 2007
CommitterAdjust some regex debugging printouts to not give wrong-format-width warnings on a 64-bit machine. Noted while chasing a recent regex bug report.
06ce02f9
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 06, 2007
CommitterAdjust regcustom.h so that all those assert() calls in the regex package are converted to Postgres Assert() macros, instead of using <assert.h> as formerly. No difference in production builds, but --enable-cassert debug builds will get better coverage for regex testing.
c4db0d9a
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 06, 2007
CommitterFix plperl and pltcl to include the name of the current function when passing on errors from the language interpreter. (plpython seems fairly OK about this already.) Per gripe from Robert Kleemann.
94035980
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 05, 2007
CommitterRemove some cross-references that don't seem to work in HISTORY generation ... we should figure this out later ...
3a38ea26
master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more
No linked threadOct 05, 2007
CommitterFix distprep and maintainer-clean targets so that ecpg's .def files are made and removed at the correct times.
eefd10c6
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 05, 2007
CommitterAdd .cvsignore files to suppress CVS gripes about ecpg .def files.
b8f41d50
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 05, 2007
CommitterSome desultory markup improvements in the new release notes.
3c2d497f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 04, 2007
CommitterResults from buildfarm show that ecpglib was depending on pg_strcasecmp, which evidently it got as an unofficial export from pgtypeslib.
8dfca24b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 04, 2007
CommitterBackportedKeep the planner from failing on "WHERE false AND something IN (SELECT ...)". eval_const_expressions simplifies this to just "WHERE false", but we have already done pull_up_IN_clauses so the IN join will be done, or at least planned, anyway. The trouble case comes when the sub-SELECT is itself a join and we decide to implement the IN by unique-ifying the sub-SELECT outputs: with no remaining reference to the output Vars in WHERE, we won't have propagated the Vars up to the upper join point, leading to "variable not found in subplan target lists" error. Fix by adding an extra scan of in_info_list and forcing all Vars mentioned therein to be propagated up to the IN join point. Per bug report from Miroslav Sulc.
89db887b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+21 more
No linked threadOct 04, 2007
CommitterStamp 8.3beta1, except in configure.in/configure.
87dfa0d9
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 04, 2007
CommitterBackportedUpdate timezone data files to release 2007h of the zic database. Might as well have the latest when we wrap 8.3beta1.
08e5749c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadOct 04, 2007
CommitterDLL_DEFFILE should be defined when PORTNAME is win32, not when it isn't, per the example of libpq/Makefile.
c86ce069
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 04, 2007
CommitterChange Assert() to a plain test and elog, just to see if that works around the icc bug exhibited by buildfarm member dugong.
b26738b5
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 04, 2007
CommitterSecond pass at 8.3 release notes: put items in a bit more logical order where possible, add overview and incompatibilities lists, minor cleanups. The SGML-ification still leaves much to be desired.
0a04109d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 03, 2007
CommitterTeach chklocale.c how to extract encoding info from Windows locale names. ITAGAKI Takahiro
a8dfe119
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 03, 2007
CommitterSome editorial improvements for recently-added ALTER SEQUENCE/VIEW documentation. Heikki and Tom
bda5750a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 03, 2007
CommitterSuppress compiler warning in non-threaded build.
b3ab9b45
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 03, 2007
CommitterTweak recently-added tests to suppress scary-looking warnings on 64-bit machines about casts between pointers and integers of different sizes. While they're harmless, we shouldn't expect users to have to go through and figure that out for themselves.
6cbb2353
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 03, 2007
CommitterMinor improvements to hack for old OpenSSL libraries: avoid unused variable warning on Windows, improve comment.
fdbce93b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 03, 2007
CommitterFix command for fetching snprintf.c.
a248dbc4
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 03, 2007
CommitterFirst cut at 8.3 release notes. SGML markup is nonexistent, and the 'overview' and 'incompatibilities' summary lists remain to be written. But I think all the raw info is there (indeed maybe too verbose).
6d673a63
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 03, 2007
CommitterCope with ERR_set_mark() and ERR_pop_to_mark() not existing in older OpenSSL libraries --- just don't call them if they're not there. This might possibly lead to misleading error messages, but we'll just have to live with that.
f1d37a99
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 02, 2007
CommitterAdd catalogs.sgml documentation for text search catalogs.
eb9f280c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 01, 2007
CommitterAdd note warning against use of pre-8.4 multithreaded Tcl.
5a95c560
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 01, 2007
CommitterAvoid assuming that struct varattrib_pointer doesn't get padded by the compiler --- at least on ARM, it does. I suspect that the varvarlena patch has been creating larger-than-intended toast pointers all along on ARM, but it wasn't exposed until the latest tweak added some Asserts that calculated the expected size in a different way. We could probably have fixed this by adding __attribute__((packed)) as is done for ItemPointerData, but struct varattrib_pointer isn't really all that useful anyway, so it seems cleanest to just get rid of it and have only struct varattrib_1b_e. Per results from buildfarm member quagga.
b526462f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadOct 01, 2007
CommitterAdd an extra header byte to TOAST-pointer datums to represent their size explicitly. This means a TOAST pointer takes 18 bytes instead of 17 --- still smaller than in 8.2 --- which seems a good tradeoff to ensure we won't have painted ourselves into a corner if we want to support multiple types of TOAST pointer later on. Per discussion with Greg Stark.
27b89222
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 30, 2007
CommitterIn hopes of un-breaking the buildfarm, add missing file from ITAGAKI Takahiro's patch.
3ff0018c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 30, 2007
CommitterAdjust recovery PS display as agreed with Simon: 'waiting for XXX' while the restore_command does its thing, then 'recovering XXX' while processing the segment file. These operations are heavyweight enough that an extra PS display set shouldn't bother anyone.
ab051bd2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 30, 2007
CommitterProperly mark mergeable/hashable equality operators (found by opr_sanity testing). Combine the formerly independent opclasses for the various ISN types into opfamilies. The latter causes some extra bleating from opr_sanity, since the module doesn't provide complete sets of cross-type operators, but it's still a good idea because it will give the planner more information to work with. The missing cross-type operators no longer pose a risk of unexpected planner errors in 8.3, so there's no need to insist on filling them in (and I gather it wouldn't be very sound semantically to add them all).
47d23471
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 30, 2007
CommitterSupport functions for index opclasses should be immutable. Found by running opr_sanity on contrib modules.
f8203f90
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 30, 2007
CommitterSupport functions for index opclasses should be immutable. Found by running opr_sanity on contrib modules.
ae57efed
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 30, 2007
CommitterSupport functions for index opclasses should be immutable. Found by running opr_sanity on contrib modules.
2e0c47e5
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 29, 2007
CommitterSupport functions for index opclasses should be immutable. Found by running opr_sanity on contrib modules.
d80d8acb
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 29, 2007
CommitterSupport functions for index opclasses should be immutable. Found by running opr_sanity on contrib modules.
92266303
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 29, 2007
CommitterRemove bogus commutator marking --- the module doesn't actually supply any commutator operator for =(chkpass,text), so this was creating a shell operator that would fail on use. Found by opr_sanity testing.
591abe1b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 29, 2007
CommitterSupport functions for index opclasses should be immutable. Found by running opr_sanity on contrib modules.
24ad7d46
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 29, 2007
CommitterMake recovery show the current input WAL segment name in the startup process' PS display. After a suggestion by Simon (not exactly his patch though).
77ccbe64
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 29, 2007
CommitterBackportedDisallow CLUSTER using an invalid index (that is, one left over from a failed CREATE INDEX CONCURRENTLY). Such an index might not have entries for every heap row and thus clustering with it would result in silent data loss. The scenario requires a pretty foolish DBA, but still ...
f6a54b8c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadSep 29, 2007
CommitterImprove consistency of the error messages generated when you try to use ALTER TABLE on a composite type or ALTER TYPE on a table's rowtype. We already rejected these cases, but the error messages were a bit random and didn't always provide a HINT to use the other command type.
34b44c3b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 29, 2007
CommitterBackportedDefend against openssl libraries that fail on keys longer than 128 bits; which is the case at least on some Solaris versions. Marko Kreen
6e7e0b53
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more
No linked threadSep 29, 2007
CommitterBackportedMake archive recovery always start a new timeline, rather than only when a recovery stop time was used. This avoids a corner-case risk of trying to overwrite an existing archived copy of the last WAL segment, and seems simpler and cleaner all around than the original definition. Per example from Jon Colverson and subsequent analysis by Simon.
b46bd55a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadSep 29, 2007
CommitterMake use of additional chklocale.c entries to reject locales that we cannot support.
b37e1770
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 29, 2007
CommitterTeach chklocale.c about a few names for frontend-only encodings, since this will allow initdb to reject attempts to initdb in a locale that uses such an encoding. We'll probably find out more such names during beta ...
d5459671
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 29, 2007
CommitterOn OS X, assume that an empty-string result for nl_langinfo(CODESET) means UTF-8. Per examination of /usr/share/locale in 10.4.10.
1f329990
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 28, 2007
CommitterChange initdb and CREATE DATABASE to actively reject attempts to create databases with encodings that are incompatible with the server's LC_CTYPE locale, when we can determine that (which we can on most modern platforms, I believe). C/POSIX locale is compatible with all encodings, of course, so there is still some usefulness to CREATE DATABASE's ENCODING option, but this will insulate us against all sorts of recurring complaints caused by mismatched settings.
70b9b9b7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 28, 2007
CommitterTweak initdb's text search configuration selection code so it can cope with LANG settings like 'es_ES@euro'.
834f4501
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 28, 2007
CommitterFix typos in two comments. Spotted by Brendan Jurd
aedc5ed5
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 27, 2007
CommitterTweak pgbench.c to remove the hidden assumption that a WIN32 machine couldn't possibly HAVE_GETOPT. I believe this is the most appropriate form of the patch submitted 2007-08-07 by Hiroshi Saito, though not having a Windows build environment I won't know for sure till I see the buildfarm results.
ffda6747
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 27, 2007
CommitterDefine the FRONTEND symbol in postgres_fe.h, which allows us to eliminate duplicative -DFRONTEND flags from many Makefiles. We still need Makefile control of the symbol in a few places that compile frontend-or-backend src/port/ files, but it's a lot cleaner than before.
314ed5de
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 27, 2007
CommitterAdd virtual transaction IDs to CSVLOG output, so that messages coming from the same transaction can be identified even when no regular XID was assigned. This seems essential after addition of the lazy-XID patch. Also some minor code cleanup in write_csvlog().
77c166ba
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 27, 2007
CommitterBackportedFix Assert failure in ExpandColumnRefStar --- what I thought was a can't happen condition can happen given incorrect input. The real problem is that gram.y should try harder to distinguish * from "*" --- the latter is a legal column name per spec, and someday we ought to treat it that way. However fixing that is too invasive for a back-patch, and it's too late for the 8.3 cycle too. So just reduce the Assert to a plain elog for now. Per report from NikhilS.
a62a359b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadSep 27, 2007
CommitterSome small tuptoaster improvements from Greg Stark. Avoid unnecessary decompression of an already-compressed external value when we have to copy it; save a few cycles when a value is too short for compression; and annotate various lines that are currently unreachable.
84fe8990
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 26, 2007
CommitterMinor improvements in backup and recovery:
f18dfc48
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 26, 2007
CommitterCreate a function variable "join_search_hook" to let plugins override the join search order portion of the planner; this is specifically intended to simplify developing a replacement for GEQO planning. Patch by Julius Stroffek, editorialized on by me. I renamed make_one_rel_by_joins to standard_join_search and make_rels_by_joins to join_search_one_level to better reflect their place within this scheme.
cdf0231c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 26, 2007
CommitterIn the integer-datetimes case, date2timestamp and date2timestamptz need to check for overflow because the legal range of type date is actually wider than timestamp's. Problem found by Neil Conway.
6f21c57a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 26, 2007
CommitterUse SYSV semaphores rather than POSIX on Darwin >= 6.0 (i.e., OS X 10.2 and up), per Chris Marcellino. This avoids consuming O(N^2) file descriptors to support N backends. Tests suggest it's about a wash for small installations, but large ones would have a problem.
93407d39
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 26, 2007
CommitterChange on-disk representation of NUMERIC datatype so that the sign_dscale word comes before the weight instead of after. This will allow future binary-compatible extension of the representation to support compact formats, as discussed on pgsql-hackers around 2007/06/18. The reason to do it now is that we've already pretty well broken any chance of simple in-place upgrade from 8.2 to 8.3, but it's possible that 8.3 to 8.4 (or whenever we get around to squeezing NUMERIC) could otherwise be data-compatible.
f828f878
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 25, 2007
CommitterDept. of second thoughts: fix loop in BgBufferSync so that the exit when bgwriter_lru_maxpages is exceeded leaves the loop variables in the expected state. In the original coding, we'd fail to advance next_to_clean, causing that buffer to be probably-uselessly rechecked next time, and also have an off-by-one idea of the number of buffers scanned.
7a315a09
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 25, 2007
CommitterJust-in-time background writing strategy. This code avoids re-scanning buffers that cannot possibly need to be cleaned, and estimates how many buffers it should try to clean based on moving averages of recent allocation requests and density of reusable buffers. The patch also adds a couple more columns to pg_stat_bgwriter to help measure the effectiveness of the bgwriter.
6f5c38dc
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 25, 2007
CommitterSimplify and rename some GUC variables, per various recent discussions:
48f7e643
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 24, 2007
CommitterReplace linear searches with binary searches in pg_dump's code to lookup objects by OID. Per gripe from nikitathespider.
c3b193a5
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 23, 2007
CommitterFix bugs in XML binary I/O functions. Heikki and Tom
f71c7b9d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 23, 2007
CommitterMake autovacuum report the start time of its current activity in pg_stat_activity. Per gripe from Jim Nasby.
ea72d37f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 23, 2007
CommitterTransactionIdIsInProgress can skip scanning the ProcArray if the target XID is later than latestCompletedXid, per Florian Pflug. Also some minor improvements in the XIDCACHE_DEBUG code --- make sure each call of TransactionIdIsInProgress is counted one way or another.
1b3d400c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 23, 2007
CommitterTemporarily modify tsearch regression tests to suppress notice that comes out at erratic times, because it is creating a totally unacceptable level of noise in our buildfarm results. This patch can be reverted when and if the code is fixed to not issue notices during cache reload events.
33b9c8bd
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 23, 2007
CommitterFix cost estimates for EXISTS subqueries that are evaluated as initPlans (because they are uncorrelated with the immediate parent query). We were charging the full run cost to the parent node, disregarding the fact that only one row need be fetched for EXISTS. While this would only be a cosmetic issue in most cases, it might possibly affect planning outcomes if the parent query were itself a subquery to some upper query. Per recent discussion with Steve Crawford.
71256875
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 22, 2007
CommitterDocument the translations from Postgres message severity levels to syslog and eventlog severity levels, per suggestion from Josh Drake. Also, some wordsmithing for the csvlog documentation.
90c156f0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 22, 2007
CommitterBackportedFix erroneous Assert() in syslogger process start in EXEC_BACKEND case, per ITAGAKI Takahiro. Also, rewrite syslogger_forkexec() in hopes of eliminating the confusion in the first place.
f3162229
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadSep 22, 2007
CommitterBackportedFix bogus calculation of potential output string length in translate().
bbda96d7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadSep 22, 2007
CommitterParenthesize macro arguments safely. I see no bug among the current uses of PG_DETOAST_DATUM_SLICE, but it's clearly trouble waiting to happen.
571340a0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 22, 2007
CommitterAlthough I'd misdiagnosed the reason for the recent failures on buildfarm member grebe, I see no reason to revert the 1-byte-header-friendly changes I made in varlena.c. Instead, tweak the code a little bit to get more advantage out of that.
5e87ebb0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 22, 2007
CommitterDoh --- what's really happening on buildfarm member grebe is that its malloc returns NULL for malloc(0). Defend against that case.
94470b94
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 22, 2007
CommitterFix varlena.c routines to allow 1-byte-header text values. This is now demonstrably necessary for text_substring() since regexp_split functions may pass it such a value; and we might as well convert the whole file at once. Per buildfarm results (though I wonder why most machines aren't showing a failure).
b5d1608b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 22, 2007
CommitterFix regex, LIKE, and some other second-rank text-manipulation functions to not cause needless copying of text datums that have 1-byte headers. Greg Stark, in response to performance gripe from Guillaume Smet and ITAGAKI Takahiro.
7583f9a7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 21, 2007
CommitterImprove handling of prune/no-prune decisions by storing a page's oldest unpruned XMAX in its header. At the cost of 4 bytes per page, this keeps us from performing heap_page_prune when there's no chance of pruning anything. Seems to be necessary per Heikki's preliminary performance testing.
cc59049d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 21, 2007
CommitterChange tqual.c tests to use !TransactionIdIsCurrentTransactionId, rather than TransactionIdDidAbort, when handling the case that xmin is one of the current transaction's XIDs and the tuple has been deleted. xmax must also be one of the current transaction's XIDs, since no one else can see it yet, and it's cheaper to look at local state than shared state to find out if xmax aborted. Per an idea of Heikki's.
386a5d42
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 21, 2007
CommitterMake some simple performance improvements in TransactionIdIsInProgress(). For XIDs of our own transaction and subtransactions, it's cheaper to ask TransactionIdIsCurrentTransactionId() than to look in shared memory. Also, the xids[] work array is always the same size within any given process, so malloc it just once instead of doing a palloc/pfree on every call; aside from being faster this lets us get rid of some goto's, since we no longer have any end-of-function pfree to do. Both ideas by Heikki.
da072ab2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 21, 2007
CommitterFix comments that misspelled TransactionIdIsInProgress, per Heikki.
bd0af827
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 21, 2007
CommitterIf we're gonna provide an --enable-profiling configure option, surely it ought to know that you need -DLINUX_PROFILE on Linux.
017daed0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 21, 2007
CommitterInsert a hack in pl/tcl to disable Tcl's built-in Notifier subsystem, which has a bad habit of launching multiple threads within the backend and thereby causing all kinds of havoc. Fortunately, we don't need it, and recent Tcl versions provide an easy way to disable it. Diagnosis and fix by Steve Marshall, Paul Bayer, and Doug Knight of WSI Corporation.
02185a07
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 21, 2007
CommitterSolaris portability fix that was previously made in contrib/tsearch2 but got lost from the version committed to main tree. Per Greg Stark.
d22ae3ec
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 20, 2007
CommitterRevert ill-fated patch to release exclusive lock early after vacuum truncates a table. Introduces race condition, as shown by buildfarm failures.
eb5f4d6c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 20, 2007
CommitterHOT updates. When we update a tuple without changing any of its indexed columns, and the new version can be stored on the same heap page, we no longer generate extra index entries for the new version. Instead, index searches follow the HOT-chain links to ensure they find the correct tuple version.
282d2a03
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 20, 2007
CommitterRemove Assert(BgWriterShmem != NULL), which is rather pointless since we'd dump core anyway immediately afterward if it were null; and it seems to confuse some versions of icc into generating bad code. Per report from Sergey Koposov. Patched in HEAD only, for the moment, since this is only likely to affect developers.
039dc49d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 16, 2007
CommitterBackportedFix overflow in extract(epoch from interval) for intervals exceeding 68 years. Seems to have been introduced in 8.1 by careless SECS_PER_DAY search-and-replace.
22d98e79
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more
No linked threadSep 16, 2007
CommitterBackportedUpdate release notes for last-minute fix.
e92da1a9
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadSep 16, 2007
CommitterBackportedFix aboriginal mistake in lazy VACUUM's code for truncating away no-longer-needed pages at the end of a table. We thought we could throw away pages containing HEAPTUPLE_DEAD tuples; but this is not so, because such tuples very likely have index entries pointing at them, and we wouldn't have removed the index entries. The problem only emerges in a somewhat unlikely race condition: the dead tuples have to have been inserted by a transaction that later aborted, and this has to have happened between VACUUM's initial scan of the page and then rechecking it for empty in count_nondeletable_pages. But that timespan will include an index-cleaning pass, so it's not all that hard to hit. This seems to explain a couple of previously unsolved bug reports.
43b0c918
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadSep 16, 2007
CommitterBackportedFix markup that doesn't work in back branches.
b2acd633
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadSep 14, 2007
CommitterBackportedMinor editorialization on release notes.
9b2afa90
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadSep 14, 2007
CommitterFix missed version-stamping.
d915af07
REL8_2_STABLE8.2.5
No linked threadSep 14, 2007
CommitterBackportedRemove ill-considered (not to mention undocumented) attempt to make contrib/intarray's GIN opclass override the built-in default. Per bug #3048 and other complaints.
2d6cb170
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadSep 14, 2007
CommitterRedefine the lp_flags field of item pointers as having four states, rather than two independent bits (one of which was never used in heap pages anyway, or at least hadn't been in a very long time). This gives us flexibility to add the HOT notions of redirected and dead item pointers without requiring anything so klugy as magic values of lp_off and lp_len. The state values are chosen so that for the states currently in use (pre-HOT) there is no change in the physical representation.
68893035
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 12, 2007
CommitterRevert ill-starred change to ICC anti-aliasing switches. Per Jeremy Drake.
e435bddb
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 12, 2007
CommitterGive ICC its preferred, documented form of the no-strict-aliasing switch, viz '-fno-alias'. Since we have a separate code path here anyway, it's just as easy to cooperate.
861f7357
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 11, 2007
CommitterBackportedSync timezone data with 2007g zic release.
16f8a9e4
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadSep 11, 2007
CommitterBackportedMake sure that open hash table scans are cleaned up when bgwriter tries to recover from elog(ERROR). Problem was created by introduction of hash seq search tracking awhile back, and affects all branches that have bgwriter; in HEAD the disease has snuck into autovacuum and walwriter too. (Not sure that the latter two use hash_seq_search at the moment, but surely they might someday.) Per report from Sergey Koposov.
f181f9e1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadSep 11, 2007
CommitterInclude hash table name in all the internal-error elog messages in dynahash.c. Sergey Koposov's current open problem shows the possible usefulness of this, and it doesn't add much code.
5cf785a4
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 11, 2007
CommitterRename recently-added pg_stat_activity column from txn_start to xact_start, for consistency with other column names such as in pg_stat_database.
ef4d38c8
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 11, 2007
CommitterArrange for SET LOCAL's effects to persist until the end of the current top transaction, unless rolled back or overridden by a SET clause for the same variable attached to a surrounding function call. Per discussion, these seem the best semantics. Note that this is an INCOMPATIBLE CHANGE: in 8.0 through 8.2, SET LOCAL's effects disappeared at subtransaction commit (leading to behavior that made little sense at the SQL level).
82a47982
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 11, 2007
CommitterRevert temporary patch that made synchronous_commit default to OFF.
f243a1a1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 10, 2007
CommitterSet the correct context (PGC_SIGHUP) for log_autovacuum, per ITAGAKI Takahiro. Fix grammatical errors in its description.
b7adf47e
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 10, 2007
CommitterCode review for GUC revert-values-if-removed-from-postgresql.conf patch; and in passing, fix some bogosities dating from the custom_variable_classes patch. Fix guc-file.l to correctly check changes in custom_variable_classes that are attempted concurrently with additions/removals of custom variables, and don't allow the new setting to be applied in advance of checking it. Clean up messy and undocumented situation for string variables with NULL boot_val. Fix DefineCustomVariable functions to initialize boot_val correctly. Prevent find_option from inserting bogus placeholders for custom variables that are simply inquired about rather than being set.
40fda15d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 10, 2007
CommitterReplace the former method of determining snapshot xmax --- to wit, calling ReadNewTransactionId from GetSnapshotData --- with a "latestCompletedXid" variable that is updated during transaction commit or abort. Since latestCompletedXid is written only in places that had to lock ProcArrayLock exclusively anyway, and is read only in places that had to lock ProcArrayLock shared anyway, it adds no new locking requirements to the system despite being cluster-wide. Moreover, removing ReadNewTransactionId from snapshot acquisition eliminates the need to take both XidGenLock and ProcArrayLock at the same time. Since XidGenLock is sometimes held across I/O this can be a significant win. Some preliminary benchmarking suggested that this patch has no effect on average throughput but can significantly improve the worst-case transaction times seen in pgbench. Concept by Florian Pflug, implementation by Tom Lane.
6bd4f401
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 08, 2007
CommitterDon't take ProcArrayLock while exiting a transaction that has no XID; there is no need for serialization against snapshot-taking because the xact doesn't affect anyone else's snapshot anyway. Per discussion. Also, move various info about the interlocking of transactions and snapshots out of code comments and into a hopefully-more-cohesive discussion in access/transam/README.
0a51e707
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 07, 2007
CommitterAllow CREATE INDEX CONCURRENTLY to disregard transactions in other databases, per gripe from hubert depesz lubaczewski. Patch from Simon Riggs.
cd1aae58
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 07, 2007
CommitterMake eval_const_expressions() preserve typmod when simplifying something like null::char(3) to a simple Const node. (It already worked for non-null values, but not when we skipped evaluation of a strict coercion function.) This prevents loss of typmod knowledge in situations such as exhibited in bug #3598. Unfortunately there seems no good way to fix that bug in 8.1 and 8.2, because they simply don't carry a typmod for a plain Const node.
f8942f4a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 06, 2007
CommitterVolatile-qualify the ProcArray PGPROC pointer in a bunch of routines that examine fields that could change under them. This is just to make really sure that when we are fetching a value 'only once', that's what actually happens. Possibly this is a bug that should be back-patched, but in the absence of solid evidence that it's needed, I won't bother.
0ecb4ea7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 05, 2007
CommitterQuick hack to make the VXID of a prepared transaction be -1/XID, so that different prepared xacts can be told apart in the pg_locks view. Per suggestion from Florian.
4bf2dfb9
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 05, 2007
CommitterImplement lazy XID allocation: transactions that do not modify any database rows will normally never obtain an XID at all. We already did things this way for subtransactions, but this patch extends the concept to top-level transactions. In applications where there are lots of short read-only transactions, this should improve performance noticeably; not so much from removal of the actual XID-assignments, as from reduction of overhead that's driven by the rate of XID consumption. We add a concept of a "virtual transaction ID" so that active transactions can be uniquely identified even if they don't have a regular XID. This is a much lighter-weight concept: uniqueness of VXIDs is only guaranteed over the short term, and no on-disk record is made about them.
295e6398
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 05, 2007
CommitterSync examples of psql \dF output with current CVS HEAD behavior. Random other wordsmithing.
fcc67563
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 04, 2007
CommitterRestrict tsearch config file base names to contain a-z, 0-9, and underscore, instead of the initial policy of whatever isalpha() likes. Per discussion.
6d871a25
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 04, 2007
CommitterSupport SET FROM CURRENT in CREATE/ALTER FUNCTION, ALTER DATABASE, ALTER ROLE. (Actually, it works as a plain statement too, but I didn't document that because it seems a bit useless.) Unify VariableResetStmt with VariableSetStmt, and clean up some ancient cruft in the representation of same.
e7889b83
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 03, 2007
CommitterFix MSVC build (I think) for recent pg_proc.h column addition. This business with two independent build systems does kinda suck.
dd4594e3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 03, 2007
CommitterImprove stylistic consistency of descriptions of built-in objects by avoiding initcap style --- the vast majority of the existing descriptions do not use an initial cap. I didn't change places where the first word was all-cap.
7ab43b88
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 03, 2007
CommitterAdd an ORDER BY to nail down the expected row order from a query that's been shown to be sensitive to concurrent autovacuum. Per Alvaro.
6f4a5462
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 03, 2007
CommitterFix breakage of GIN support for varchar[] and cidr[] that I introduced in the operator-family rewrite. I had mistakenly supposed that these could use the pg_amproc entries for text[] and inet[] respectively. However, binary compatibility of the underlying types does not make two array types binary compatible (since they must differ in the header field that gives the element type OID), and so the index support code doesn't consider those entries applicable. Add back the missing pg_amproc entries, and add an opr_sanity query to try to catch such mistakes in future. Per report from Gregory Maxwell.
a4df52f9
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 03, 2007
CommitterImplement function-local GUC parameter settings, as per recent discussion. There are still some loose ends: I didn't do anything about the SET FROM CURRENT idea yet, and it's not real clear whether we are happy with the interaction of SET LOCAL with function-local settings. The documentation is a bit spartan, too.
2abae34a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 03, 2007
CommitterSince sort_bounded_heap makes state changes that should be made regardless of the number of tuples involved, it's incorrect to skip it when memtupcount = 1; the number of cycles saved is minuscule anyway. An alternative solution would be to pull the state changes out to the call site in tuplesort_performsort, but keeping them near the corresponding changes in make_bounded_heap seems marginally cleaner. Noticed by Greg Stark.
d2825e1c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadSep 01, 2007
CommitterBackportedApply a band-aid fix for the problem that 8.2 and up completely misestimate the number of rows likely to be produced by a query such as SELECT * FROM t1 LEFT JOIN t2 USING (key) WHERE t2.key IS NULL; What this is doing is selecting for t1 rows with no match in t2, and thus it may produce a significant number of rows even if the t2.key table column contains no nulls at all. 8.2 thinks the table column's null fraction is relevant and thus may estimate no rows out, which results in terrible plans if there are more joins above this one. A proper fix for this will involve passing much more information about the context of a clause to the selectivity estimator functions than we ever have. There's no time left to write such a patch for 8.3, and it wouldn't be back-patchable into 8.2 anyway. Instead, put in an ad-hoc test to defeat the normal table-stats-based estimation when an IS NULL test is evaluated at an outer join, and just use a constant estimate instead --- I went with 0.5 for lack of a better idea. This won't catch every case but it will catch the typical ways of writing such queries, and it seems unlikely to make things worse for other queries.
0ee5a398
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadAug 31, 2007
CommitterBackportedExtend whole-row Var evaluation to cope with the case that the sub-plan generating the tuples has resjunk output columns. This is not possible for simple table scans but can happen when evaluating a whole-row Var for a view. Per example from Patryk Kordylewski. The problem exists back to 8.0 but I'm not going to risk back-patching further than 8.2 because of the many changes in this area.
68e40998
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadAug 31, 2007
CommitterInstall check_stack_depth() protection in two recursive tsquery processing routines. Per Heikki.
79048ca1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 31, 2007
CommitterBackportedRewrite make_outerjoininfo's construction of min_lefthand and min_righthand sets for outer joins, in the light of bug #3588 and additional thought and experimentation. The original methodology was fatally flawed for nests of more than two outer joins: it got the relationships between adjacent joins right, but didn't always come to the right conclusions about whether a join could be interchanged with one two or more levels below it. This was largely caused by a mistaken idea that we should use the min_lefthand + min_righthand sets of a sub-join as the minimum left or right input set of an upper join when we conclude that the sub-join can't commute with the upper one. If there's a still-lower join that the sub-join *can* commute with, this method led us to think that that one could commute with the topmost join; which it can't. Another problem (not directly connected to bug #3588) was that make_outerjoininfo's processing-order-dependent method for enforcing outer join identity #3 didn't work right: if we decided that join A could safely commute with lower join B, we dropped all information about sub-joins under B that join A could perhaps not safely commute with, because we removed B's entire min_righthand from A's.
b4c806fa
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadAug 31, 2007
CommitterFix int8mul so that overflow check is applied correctly for INT64_IS_BUSTED case, per Florian Pflug. Not back-patched since it's unclear that anyone but me still cares ...
e75d3656
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 30, 2007
CommitterRelax permissions checks on dbsize functions, per discussion. Revert out all checks for individual-table-size functions, since anyone in the database could get approximate values from pg_class.relpages anyway. Allow database-size to users with CONNECT privilege for the target database (note that this is granted by default). Allow tablespace-size if the user has CREATE privilege on the tablespace (which is *not* granted by default), or if the tablespace is the default tablespace for the current database (since we treat that as implicitly allowing use of the tablespace).
8bc225e7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 29, 2007
CommitterBackportedFix aboriginal bug in _tarAddFile(): when complaining that the amount of data read from the temp file didn't match the file length reported by ftello(), the wrong variable's value was printed, and so the message made no sense. Clean up a couple other coding infelicities while at it.
3b5f5d98
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadAug 29, 2007
CommitterAdd a debug logging message when a resource manager rejects an attempted restart point. Per suggestion from Simon Riggs.
a52e4408
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 28, 2007
CommitterRestrict pgstattuple functions to superusers. While the only one that's really a glaring security hole is bt_page_items, there's not a very good use-case for letting ordinary users use 'em, either.
acb66310
REL8_2_STABLE8.2.5
No linked threadAug 28, 2007
CommitterReduce the permissions check needed to use pgrowlocks() to having SELECT on the target table. Per discussion.
89fefd94
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 28, 2007
CommitterImprove behavior of log_lock_waits patch. Ensure that something gets logged even if the "deadlock detected" ERROR message is suppressed by an exception catcher. Be clearer about the event sequence when a soft deadlock is fixed: the fixing process might or might not still have to wait, so log that separately. Fix race condition when someone releases us from the lock partway through printing all this junk --- we'd not get confused about our state, but the log message sequence could have been misleading, ie, a "still waiting" message with no subsequent "acquired" message. Greg Stark and Tom Lane.
24d4517b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 28, 2007
CommitterFix a couple of misbehaviors rooted in the fact that the default creation namespace isn't necessarily first in the search path (there could be implicit schemas ahead of it). Examples are
862861ee
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 27, 2007
CommitterRemove the 'not in' operator (!!=). This was a hangover from Berkeley days that was obsolete the moment we had IN (SELECT ...) capability. It's arguably a security hole since it applied no permissions check to the table it searched, and since it was never documented anywhere, removing it seems more appropriate than fixing it.
6c96188c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 27, 2007
CommitterRequire SELECT privilege on a table to do dblink_get_pkey(). This is not all that exciting when the system catalogs are readable by all, but some people try to lock them down, and would not like this sort of end run ...
a41e46b2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 27, 2007
CommitterRestrict pg_relation_size to relation owner, pg_database_size to DB owner, and pg_tablespace_size to superusers. Perhaps we could weaken the first case to just require SELECT privilege, but that doesn't work for the other cases, so use ownership as the common concept.
cc26599b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 27, 2007
CommitterMake currtid() functions require SELECT privileges on the target table. While it's not clear that TID linkage info is of any great use to a nefarious user, it's certainly unexpected that these functions wouldn't insist on read privileges.
741e952b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 27, 2007
CommitterRestrict pgrowlocks function to superusers. (This might be too strict, but no permissions check at all is certainly no good.) Clean up usage of some deprecated APIs.
56f3fb3b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 27, 2007
CommitterRestrict pgstattuple functions to superusers. (This might be too strict, but no permissions check at all is certainly no good.) Clean up usage of some deprecated APIs.
38c75ecf
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 26, 2007
CommitterClean up usage of some deprecated APIs, particularly schema-unsafe usage of RelationNameGetTupleDesc().
0effa088
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 26, 2007
CommitterCode review for btreefuncs additions: restrict to superusers to avoid exposing user data to others, and clean up usage of deprecated APIs.
08fc73c4
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 26, 2007
CommitterMake ARRAY(SELECT ...) return an empty array, rather than a NULL, when the sub-select returns zero rows. Per complaint from Jens Schicke. Since this is more in the nature of a definition change than a bug, not back-patched.
67bf7b91
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 26, 2007
CommitterAdjust with-system-tzdata patch to not attempt to install a symlink, but just hardwire the specified timezone database path into the executable. Per discussion, this avoids some packaging disadvantages of using a symlink.
75d5f6fe
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 25, 2007
CommitterBackportedFix brain fade in DefineIndex(): it was continuing to access the table's relcache entry after having heap_close'd it. This could lead to misbehavior if a relcache flush wiped out the cache entry meanwhile. In 8.2 there is a very real risk of CREATE INDEX CONCURRENTLY using the wrong relid for locking and waiting purposes. I think the bug is only cosmetic in 8.0 and 8.1, because their transgression is limited to using RelationGetRelationName(rel) in an ereport message immediately after heap_close, and there's no way (except with special debugging options) for a cache flush to occur in that interval. Not quite sure that it's cosmetic in 7.4, but seems best to patch anyway.
75d091a0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+21 more
No linked threadAug 25, 2007
CommitterSimplify implementation of ts_debug() function --- use a join instead of redundant sub-selects. initdb not forced, since this is just a cosmetic change, but the new code won't show up till you do one.
21168267
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 25, 2007
CommitterSome more tsearch docs work --- sync names with CVS-tip reality, some minor rewording, some markup fixups. Lots left to do here ...
52a0830c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 25, 2007
CommitterFix synonym-dict breakage introduced in last patch :-(. Minor other cleanups.
a13cefaf
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 25, 2007
CommitterRename built-in Snowball stemmer dictionaries to be english_stem, russian_stem, etc. Per discussion.
93eab931
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 25, 2007
CommitterCleanup for some problems in tsearch patch: - ispell initialization crashed on empty dictionary file - ispell initialization crashed on affix file with prefixes but no suffixes - stop words file was run through pg_verify_mbstr, with database encoding, but it's supposed to be UTF-8; similar bug for synonym files - bunch of comments added, typos fixed, and other cleanup
7351b5fa
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 25, 2007
CommitterBackportedFix combo_decrypt() to throw an error for zero-length input when using a padded encryption scheme. Formerly it would try to access res[(unsigned) -1], which resulted in core dumps on 64-bit machines, and was certainly trouble waiting to happen on 32-bit machines (though in at least the known case it was harmless because that byte would be overwritten after return). Per report from Ken Colson; fix by Marko Kreen.
b918bf86
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadAug 23, 2007
CommitterBackportedFix possible core dump from pgbench -d option. Julius Stroffek
d0975342
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadAug 22, 2007
CommitterSuppress testing the options of CREATE TEXT SEARCH DICTIONARY during initdb. We should create all the standard dictionaries even though some of them may not work in template1's encoding. Per Teodor.
11fee4e3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 22, 2007
CommitterPropagate Magnus' fix for Windows snowball build into Makefile.cygwin.
34dc9abd
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 22, 2007
CommitterFix cut-n-paste-o.
9f28588b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 22, 2007
CommitterFix VPATH-build problem in new tsearch makefile, per Chad Wagner.
f4ccdb3a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 22, 2007
CommitterRemove option to change parser of an existing text search configuration. This prevents needing to do complex and poorly-defined updates of the mapping table if the new parser has different token types than the old. Per discussion.
8a5592da
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 22, 2007
CommitterText search doc updates --- first cut at syncing the existing docs with the final syntax decisions.
40c1d7c1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 22, 2007
CommitterWhoops, missed updating dsynonym_init for new dictionary parameter method.
b77c6c73
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 22, 2007
CommitterMake \dFt and \dFt+ do something different --- omitting the function names in the former case seems more consistent with the behavior of other \dF commands.
b2a52b3b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 22, 2007
CommitterSimplify the syntax of CREATE/ALTER TEXT SEARCH DICTIONARY by treating the init options of the template as top-level options in the syntax. This also makes ALTER a bit easier to use, since options can be replaced individually. I also made these statements verify that the tmplinit method will accept the new settings before they get stored; in the original coding you didn't find out about mistakes until the dictionary got invoked.
d321421d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 22, 2007
CommitterSimplify CREATE TEXT SEARCH CONFIGURATION by eliminating the separate 'with map' parameter; as things now stand there's really not much point in specifying a config-to-copy if you don't copy its map. Also, use COPY instead of TEMPLATE as the key word for a config-to-copy, so as to avoid confusion with text search templates. Per discussion; the just-committed reference page for the command already describes it this way.
fd33d90a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 21, 2007
CommitterFirst rough cut at text search documentation: bare bones reference pages for the new SQL commands. I also committed Bruce's text search introductory chapter, as-is except for fixing some markup errors, so that there would be a place for the reference pages to link to.
3e3bb36e
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 21, 2007
CommitterExclude snowball/libstemmer/ files from the set processed by pgindent. There's not much point in prettifying machine-generated code, and it seems best to keep these files exactly like upstream anyway. Also add some notes about why various files are excluded.
5c681ab1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 21, 2007
CommitterAvoid using TEXT as a Bison symbol, since this provokes warnings on Windows builds. In passing, fix an obsolete comment, per gripe from Greg Stark.
a4be3953
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 21, 2007
CommitterRemove extraneous semicolon --- buildfarm member bear, for one, objects to it.
d01741bf
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 21, 2007
CommitterFix cash_mul_int4 and cash_div_int4 for overenthusiastic substitution of int64 for int32. Per reports from Merlin Moncure and Andrew Chernow.
14572e43
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 21, 2007
CommitterFix money type's send/receive functions to conform to recent widening of the datatype to int64. Per Andrew Chernow.
1783e5db
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 21, 2007
CommitterBackportedFix potential access-off-the-end-of-memory in varbit_out(): it fetched the byte after the last full byte of the bit array, regardless of whether that byte was part of the valid data or not. Found by buildfarm testing. Thanks to Stefan Kaltenbrunner for nailing down the cause.
1cee06ac
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadAug 21, 2007
CommitterSuppress uninitialized-variable warning.
25a4a779
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 21, 2007
CommitterFix a small 64-bit problem in tsearch patch.
440a330a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 21, 2007
Committercontrib/tsearch2 now fails its regression test because of conflicts with the core additions. For the moment I diked it out of contrib/Makefile. We should look at turning it into a backward-compatibility package.
46dedde5
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 21, 2007
CommitterTsearch2 functionality migrates to core. The bulk of this work is by Oleg Bartunov and Teodor Sigaev, but I did a lot of editorializing, so anything that's broken is probably my fault.
140d4ebc
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 21, 2007
CommitterArrange to cache a ResultRelInfo in the executor's EState for relations that are not one of the query's defined result relations, but nonetheless have triggers fired against them while the query is active. This was formerly impossible but can now occur because of my recent patch to fix the firing order for RI triggers. Caching a ResultRelInfo avoids duplicating work by repeatedly opening and closing the same relation, and also allows EXPLAIN ANALYZE to "see" and report on these extra triggers. Use the same mechanism to cache open relations when firing deferred triggers at transaction shutdown; this replaces the former one-element-cache strategy used in that case, and should improve performance a bit when there are deferred triggers on a number of relations.
817946bb
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 15, 2007
CommitterBackportedRepair problems occurring when multiple RI updates have to be done to the same row within one query: we were firing check triggers before all the updates were done, leading to bogus failures. Fix by making the triggers queued by an RI update go at the end of the outer query's trigger event list, thereby effectively making the processing "breadth-first". This was indeed how it worked pre-8.0, so the bug does not occur in the 7.x branches. Per report from Pavel Stehule.
9cb84097
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadAug 15, 2007
CommitterFix oversight in async-commit patch: there were some places in heapam.c that still thought they could set HEAP_XMAX_COMMITTED immediately after seeing the other transaction commit. Make them use the same logic as tqual.c does to determine if the hint bit can be set yet.
67f99d21
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 14, 2007
CommitterTEMPORARILY make synchronous_commit default to OFF, so that we can get more thorough testing of async-commit mode from the buildfarm. This patch MUST get reverted before 8.3 release!
b83bd31b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 13, 2007
CommitterFix two bugs induced in VACUUM FULL by async-commit patch.
647fd9a1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 13, 2007
CommitterDocument that the regexp split functions ignore zero-length matches in certain corner cases. Per discussion, the code does what we want, but it really needs to be documented that these functions act differently from regexp_matches.
a44af6df
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 13, 2007
CommitterRemove an "optimization" I installed in 2001, to make repalloc() attempt to enlarge the memory chunk in-place when it was feasible to do so. This turns out to not work well at all for scenarios involving repeated cycles of palloc/repalloc/pfree: the eventually freed chunks go into the wrong freelist for the next initial palloc request, and so we consume memory indefinitely. While that could be defended against, the number of cases where the optimization can still be applied drops significantly, and adjusting the initial sizes of StringInfo buffers makes it drop to almost nothing. Seems better to just remove the extra complexity. Per recent discussion and testing.
b70d4a62
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 12, 2007
CommitterIncrease the initial size of StringInfo buffers to 1024 bytes (from 256); likewise increase the initial size of the scanner's literal buffer to 1024 (from 128). Instrumentation of the regression tests suggests that this saves a useful amount of repalloc() traffic --- the number of calls occurring during one set of tests drops from about 6900 to about 3900. The old sizes were chosen in the late 90's with an eye to machines much smaller than are common today.
70868c01
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 12, 2007
CommitterAvoid memory leakage across successive calls of regexp_matches() or regexp_split_to_table() within a single query. This is only a partial solution, as it turns out that with enough matches per string these functions can also tickle a repalloc() misbehavior. But fixing that is a topic for a separate patch.
ae65ca31
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 11, 2007
CommitterCode review for regexp_matches/regexp_split patch. Refactor to avoid assuming that cached compiled patterns will still be there when the function is next called. Clean up looping logic, thereby fixing bug identified by Pavel Stehule. Share setup code between the two functions, add some comments, and avoid risky mixing of int and size_t variables. Clean up the documentation a tad, and accept all the flag characters mentioned in table 9-19 rather than just a subset.
1b706193
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 11, 2007
CommitterBackportedFix uninitialized-memory bug in plpython proargnames patch. Per bug #3523
d0e5c0c0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadAug 10, 2007
CommitterBackportedFix unintended change of output format for createlang/droplang -l. Missed these uses of printQuery() in FETCH_COUNT patch a year ago :-(. Per report from Tomoaki Sato.
509bfd6a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadAug 10, 2007
CommitterBackportedFix search for SGML stylesheets to include the place where Gentoo keeps them. Brendan Jurd
faa11796
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadAug 09, 2007
CommitterRevise postmaster startup/shutdown logic to eliminate the problem that a constant flow of new connection requests could prevent the postmaster from completing a shutdown or crash restart. This is done by labeling child processes that are "dead ends", that is, we know that they were launched only to tell a client that it can't connect. These processes are managed separately so that they don't confuse us into thinking that we can't advance to the next stage of a shutdown or restart sequence, until the very end where we must wait for them to drain out so we can delete the shmem segment. Per discussion of a misbehavior reported by Keaton Adams.
bbe3c02d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 09, 2007
CommitterFix thinko in multi-autovac-workers code: validity checks made by GUC assign hooks are supposed to be made whether doit is true or not.
af1022d2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 08, 2007
CommitterBackportedFix pg_restore to guard against unexpected EOF while reading an archive file. Per report and partial patch from Chad Wagner.
fcb9535e
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadAug 06, 2007
CommitterAdjust configure so that it sets CFLAGS properly for Intel's icc even if the compiler is not defining __GNUC__. Per report from Dirk Tilger that it is possible for icc to not do that.
df9ea6a1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 05, 2007
CommitterApparently icc doesn't always define __ICC, and it's more correct to check for __INTEL_COMPILER. Per report from Dirk Tilger. Not back-patched since I don't fully trust it yet ...
c8b7e811
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 05, 2007
CommitterFix up bad layout of some comments (probably pg_indent's fault), and improve grammar a tad. Per Greg Stark.
8d303375
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 04, 2007
CommitterFix crash caused by log_timezone patch if we attempt to emit any elog messages between the setting of log_line_prefix and the setting of log_timezone. We can't realistically set log_timezone any earlier than we do now, so the best behavior seems to be to use GMT zone if any timestamps are to be logged during early startup. Create a dummy zone variable with a minimal definition of GMT (in particular it will never know about leap seconds), so that we can set it up without reference to any external files.
4fd8d6b3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 04, 2007
CommitterFix a problem in my recent patch to initialize cancel_key for autovac workers as well as regular backends: if no regular backend launches before the autovac launcher tries to start an autovac worker, the postmaster would get an Assert fault due to calling PostmasterRandom before random_seed was initialized. Cleanest solution seems to be to take the initialization of random_seed out of ServerLoop and let PostmasterRandom do it for itself.
0b9d3d4d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 04, 2007
CommitterBackportedSuppress time zone name (%Z) when logging timestamps in xlog.c startup on Windows. This is yet another manifestation of the problem that Windows returns time zone names that may be in a different encoding than we are using. I've put a better solution in HEAD, but the back branches need a simple patch. Per report from Hiroshi Saito.
fffafc5d
REL8_2_STABLE8.2.5REL8_1_STABLE8.1.10REL8_0_STABLE8.0.14
No linked threadAug 04, 2007
CommitterSwitch over to using the src/timezone functions for formatting timestamps displayed in the postmaster log. This avoids Windows-specific problems with localized time zone names that are in the wrong encoding, and generally seems like a good idea to forestall other potential platform-dependent issues. To preserve the existing behavior that all backends will log in the same time zone, create a new GUC variable log_timezone that can only be changed on a system-wide basis, and reference log-related calculations to that zone instead of the TimeZone variable.
bdd6b622
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 04, 2007
CommitterFix some sloppiness in the recent multiple-autovacuum-worker patch. It was not bothering to initialize is_autovacuum for regular backends, meaning there was a significant chance of the postmaster prematurely sending them SIGTERM during database shutdown. Also, leaving the cancel key unset for an autovac worker meant that any client could send it SIGINT, which doesn't sound especially good either.
73852bd5
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 03, 2007
CommitterSupport an optional asynchronous commit mode, in which we don't flush WAL before reporting a transaction committed. Data consistency is still guaranteed (unlike setting fsync = off), but a crash may lose the effects of the last few transactions. Patch by Simon, some editorialization by Tom.
4a78cdeb
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadAug 01, 2007
CommitterBackportedFix a bug in the original implementation of redundant-join-clause removal: clauses in which one side or the other references both sides of the join cannot be removed as redundant, because that expression won't have been constrained below the join. Per report from Sergey Burladyan.
ed5d55da
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+21 more
No linked threadJul 31, 2007
CommitterIf we're gonna use ExecRelationIsTargetRelation here, might as well simplify a bit further.
bc421c35
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 31, 2007
CommitterBackportedFix security definer functions with polymorphic arguments. This case has never worked because fmgr_security_definer() neglected to pass the fn_expr information through. Per report from Viatcheslav Kalinin.
310578ef
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+21 more
No linked threadJul 31, 2007
CommitterRemove FileUnlink(), which wasn't being used anywhere and interacted poorly with the recent patch to log temp file sizes at removal time. Doesn't seem worth fixing since it's unused. In passing, make a few elog messages conform to the message style guide.
e4f4a7f5
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 26, 2007
CommitterArrange to put TOAST tables belonging to temporary tables into special schemas named pg_toast_temp_nnn, alongside the pg_temp_nnn schemas used for the temp tables themselves. This allows low-level code such as the relcache to recognize that these tables are indeed temporary, which enables various optimizations such as not WAL-logging changes and using local rather than shared buffers for access. Aside from obvious performance benefits, this provides a solution to bug #3483, in which other backends unexpectedly held open file references to temporary tables. The scheme preserves the property that TOAST tables are not in any schema that's normally in the search path, so they don't conflict with user table names.
82eed4db
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 25, 2007
CommitterSuppress warning when compiling with -DPROFILE_PID_DIR: sys/stat.h is supposed to be included when using mkdir().
fdb5b69e
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 25, 2007
CommitterAdjust horology test to avoid join-plan-dependent result ordering in a few queries. Should fix buildfarm failures arising from new, more aggressive autovac settings.
3eb98fd1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 25, 2007
CommitterBackportedFix predicate-proving logic to cope with binary-compatibility cases when checking whether an IS NULL/IS NOT NULL clause is implied or refuted by a strict function. Per example from Dawid Kuroczko. Backpatch to 8.2 since this is arguably a performance bug.
507b53c8
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJul 24, 2007
CommitterCreate a new dedicated Postgres process, "wal writer", which exists to write and fsync WAL at convenient intervals. For the moment it just tries to offload this work from backends, but soon it will be responsible for guaranteeing a maximum delay before asynchronously-committed transactions will be flushed to disk.
ad429572
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 24, 2007
CommitterJust noticed that libpq thinks the maximum command tag length is 40, whereas in the backend it's been 64 for some time. Hasn't mattered because no actual tags exceed 40 bytes, but for consistency they should be alike.
ab7d2b6a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 23, 2007
CommitterBackportedFix elog.c to avoid infinite recursion (leading to backend crash) when log_min_error_statement is active and there is some problem in logging the current query string; for example, that it's too long to include in the log message without running out of memory. This problem has existed since the log_min_error_statement feature was introduced. No doubt the reason it wasn't detected long ago is that 8.2 is the first release that defaults log_min_error_statement to less than PANIC level. Per report from Bill Moran.
a0dab332
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadJul 21, 2007
CommitterProvide a bit more high-level documentation for the GEQO planner. Per request from Luca Ferrari.
ddb93cac
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 21, 2007
CommitterBackportedFix WAL replay of truncate operations to cope with the possibility that the truncated relation was deleted later in the WAL sequence. Since replay normally auto-creates a relation upon its first reference by a WAL log entry, failure is seen only if the truncate entry happens to be the first reference after the checkpoint we're restarting from; which is a pretty unusual case but of course not impossible. Fix by making truncate entries auto-create like the other ones do. Per report and test case from Dharmendra Goyal.
04fbe29a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadJul 20, 2007
CommitterOn second thought, the tests for what to do with stderr output are a lot more sensible if we check the chunk-output case first. Not back-patched since it's just a cosmetic improvement.
f812dd91
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 19, 2007
CommitterBackportedMake replace(), split_part(), and string_to_array() behave somewhat sanely when handed an invalidly-encoded pattern. The previous coding could get into an infinite loop if pg_mb2wchar_with_len() returned a zero-length string after we'd tested for nonempty pattern; which is exactly what it will do if the string consists only of an incomplete multibyte character. This led to either an out-of-memory error or a backend crash depending on platform. Per report from Wiktor Wodecki.
4ca7a2da
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadJul 19, 2007
CommitterAdjust configure script to print the bison and flex versions in use. Minor rearrangements to make a few tests in a more logical order.
177be3f9
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 19, 2007
CommitterBackportedFix an old thinko in SS_make_initplan_from_plan, which is used when optimizing a MIN or MAX aggregate call into an indexscan: the initplan is being made at the current query nesting level and so we shouldn't increment query_level. Though usually harmless, this mistake could lead to bogus "plan should not reference subplan's variable" failures on complex queries. Per bug report from David Sanchez i Gregori.
d514ea3f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more
No linked threadJul 18, 2007
CommitterBackportedFix incorrect optimization of foreign-key checks. When an UPDATE on the referencing table does not change the tuple's FK column(s), we don't bother to check the PK table since the constraint was presumably already valid. However, the check is still necessary if the tuple was inserted by our own transaction, since in that case the INSERT trigger will conclude it need not make the check (since its version of the tuple has been deleted). We got this right for simple cases, but not when the insert and update are in different subtransactions of the current top-level transaction; in such cases the FK check would never be made at all. (Hence, problem dates back to 8.0 when subtransactions were added --- it's actually the subtransaction version of a bug fixed in 7.3.5.) Fix, and add regression test cases. Report and fix by Affan Salman.
2c535bfe
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadJul 17, 2007
CommitterBackportedFix outfuncs.c to dump A_Const nodes representing NULLs correctly. This has been broken since forever, but was not noticed because people seldom look at raw parse trees. AFAIK, no impact on users except that debug_print_parse might fail; but patch it all the way back anyway. Per report from Jeff Ross.
804f016f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadJul 17, 2007
CommitterFix pg_buffercache to release buffer partition locks in reverse order, and add a note about why. This is not tremendously important right now, probably, but it will get more urgent if NUM_BUFFER_PARTITIONS is increased as much as proposed.
2a275e6d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 16, 2007
CommitterAdd comments spelling out why it's a good idea to release multiple partition locks in reverse order.
82b36846
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 16, 2007
CommitterAllow plpgsql function parameter names to be qualified with the function's name. With this patch, it is always possible for the user to qualify a plpgsql variable name if needed to avoid ambiguity. While there is much more work to be done in this area, this simple change removes one unnecessary incompatibility with Oracle. Per discussion.
ae1b7e29
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 16, 2007
CommitterHmm, so evidently _check_lock and _clear_lock take an argument of type int not unsigned int. Third try to get grebe building without warnings...
9f6f51d5
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 16, 2007
CommitterSo our reward for including <sys/atomic_op.h> seems to be a bunch of nattering about casting away volatile. Losers.
5aaf09ac
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 16, 2007
CommitterOn AIX, include <sys/atomic_op.h> so that the functions we use for TAS support are properly declared.
057d5c42
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 16, 2007
CommitterGet rid of overly cute, unportable, probably not very efficient substitute for 'bool'. Per buildfarm warnings.
37e347a7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 15, 2007
CommitterBackportedFix CHECK_RELATION_BLOCK_RANGE macro, which was not merely producing a warning but was outright wrong.
93624bcd
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJul 15, 2007
CommitterFix a passel of signed vs unsigned char warnings.
4608f359
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 15, 2007
CommitterSilence a rather odd compiler warning. In passing, make this file's error messages look at least a little bit like the message style guidelines say.
cfd6c89b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 15, 2007
CommitterAvoid possibly-unportable initializer, per buildfarm warning.
a190eb3d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 15, 2007
CommitterChange a couple of exit(0) to return 0 to suppress complaints from not-too-bright compilers. Per buildfarm results.
84a0445c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 15, 2007
CommitterSilence Solaris compiler warnings, per buildfarm.
7176e60b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 15, 2007
CommitterSilence Solaris compiler warning, per buildfarm.
10a91e0a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 15, 2007
CommitterFix compile warning on Solaris, per buildfarm. (Why have we got three slightly different copies of this file?)
af18d3d0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 15, 2007
CommitterFix possible portability problem, per buildfarm warnings.
cd54eb2b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 15, 2007
CommitterFix unportable use of isspace(), per buildfarm results.
c11b8dcd
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 15, 2007
CommitterBecause plpgsql's scanner uses %option case-insensitive, flex's results could theoretically vary depending on what the compile-time locale setting is. Hence, force it to see LC_CTYPE=C to ensure consistent build results. (It's likely that this makes no difference in practice, since our specification for "identifier" surely includes both ends of any possible uppercase/lowercase pair anyway. But it should silence warnings about ambiguous character classes that are reported by some buildfarm members.)
78c84ad4
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 15, 2007
CommitterReject zero or negative BY step in plpgsql integer FOR-loops, and behave sanely if the loop value overflows int32 on the way to the end value. Avoid useless computation of "SELECT 1" when BY is omitted. Avoid some type-punning between Datum and int4 that dates from the original coding.
816ff27f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 15, 2007
CommitterNote incompatibility with Oracle's version of FOR ... REVERSE, per Andrew Dunstan. Minor other improvements in documentation of integer FOR loops.
a69f9028
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 15, 2007
CommitterEditorial overhaul of plpgsql documentation. Provide detailed documentation of variable substitution and plan caching behavior in dedicated sections. (A lot of this material existed already, but was scattered in various places in the chapter.) Reorganize material a little bit, mostly to try to avoid diving into deep details in the first introductory sections. Document some fine points that had escaped treatment before, notably the ability to qualify plpgsql variable names with block labels. Some minor wordsmithing here and there.
d849c5d1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 14, 2007
CommitterVolatile-qualify a dozen variables in plpython.c to eliminate warnings from old versions of gcc. It's not clear to me that this is really necessary for correctness, but less warnings are always good. Per buildfarm results and local testing.
2789b727
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 13, 2007
CommitterFix map_sql_typecoll_to_xmlschema_types() to not fail on dropped columns, per my gripe earlier today. Make it look a bit less like someone's first effort at backend coding.
39f06dca
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 13, 2007
CommitterAdd casts to suppress warnings about m68k-specific kluge in fmgr.c.
a7021591
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 13, 2007
CommitterFix a portability bug (ye olde not casting a <ctype.h> argument to unsigned char). Fortunately we still have buildfarm machines that will flag this. Seems to be new in CVS HEAD, so no backpatch.
04b54876
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 12, 2007
CommitterGet dirmod.c on the same page as port.h about whether we use pgsymlink on Cygwin (answer: we don't). Also try to unwind the #ifdef spaghetti a little bit. Untested but hopefully I didn't break anything.
6bc12a4a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 12, 2007
CommitterSimplify overly-cute array coding to avoid an apparent gcc bug, which may or may not be harmless. Report from Stefan, patch from Heikki.
4f09b55d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 12, 2007
CommitterSuppress Sun Studio warnings, per Stefan.
4bbb7f94
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 12, 2007
CommitterSuppress an integer-overflow warning.
4dbbef28
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 12, 2007
CommitterSome of our port-specific dynloader implementations are careful to define pg_dlsym() as returning a PGFunction pointer, not just any pointer-to-function. But many are not. Suppress compiler warnings on platforms that aren't careful by inserting explicit casts at the two call sites that didn't have a cast already. Per Stefan.
292e4c61
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 12, 2007
CommitterCompute max and min int8 values using unsigned arithmetic, in hopes of suppressing Sun Studio compiler warnings. Per Stefan.
706754c1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 12, 2007
CommitterFix some warnings (probably actual bugs) generated by new GSSAPI code when built on a 64-bit machine. Per buildfarm results extracted by Stefan.
72c7badb
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 12, 2007
CommitterBackportedFix mistaken Assert in adjust_appendrel_attr_needed, per Greg Stark.
bc8d164d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJul 12, 2007
CommitterSuppress a warning that some versions of gcc emit about %x in strftime. Per suggestion from Alvaro.
05c4d8f7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 11, 2007
CommitterAdd note that building from CVS requires bison and flex, whereas building from a distribution tarball does not.
bf75e2a3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 10, 2007
CommitterFix misspelling.
e27a8df1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 10, 2007
CommitterAdjust processSQLNamePattern() so that $ within the pattern is always matched literally, whether quoted or not. Since we allow $ as a character within identifiers, this behavior is useful, whereas the previous behavior of treating it as the regexp ending anchor was nearly useless given that the pattern is automatically anchored anyway. This affects the arguments of psql's \d commands as well as pg_dump's -n and -t switches. Per discussion.
ff481ca0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 10, 2007
CommitterBackportedFix stddev_pop(numeric) and var_pop(numeric), which were incorrectly producing the same outputs as stddev_samp() and var_samp() respectively.
6244c2df
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJul 09, 2007
CommitterFix single-user mode so that interrupts (particularly SIGTERM and SIGQUIT) will be recognized and processed while waiting for input, rather than only after something has been typed. Also make SIGQUIT do the same thing as SIGTERM in single-user mode, ie, do a normal shutdown and exit. Since it's relatively easy to provoke SIGQUIT from the keyboard, people may try that instead of control-D, and we'd rather this leads to orderly shutdown. Per report from Leon Mergen and subsequent discussion.
9e09e3b1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 09, 2007
CommitterMinor copy-editing.
9b619679
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 09, 2007
CommitterBackportedRemove the pgstat_drop_relation() call from smgr_internal_unlink(), because we don't know at that point which relation OID to tell pgstat to forget. The code was passing the relfilenode, which is incorrect, and could possibly cause some other relation's stats to be zeroed out. While we could try to clean this up, it seems much simpler and more reliable to let the next invocation of pgstat_vacuum_tabstat() fix things; which indeed is how it worked before I introduced the buggy code into 8.1.3 and later :-(. Problem noticed by Itagaki Takahiro, fix is per subsequent discussion.
b09cb0cf
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more
No linked threadJul 08, 2007
CommitterGet rid of client-code dependencies on the exact text of the no-password error message, by using PQconnectionUsedPassword() instead. Someday we might be able to localize that error message, but not until this coding technique has disappeared everywhere.
8331c11f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 08, 2007
CommitterCloser code review for PQconnectionUsedPassword() patch: in particular, not OK to include postgres_fe.h into libpq-fe.h, hence declare it as returning int not bool.
5f7b1f8d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 08, 2007
CommitterFix broken markup.
3f33d7bc
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 08, 2007
CommitterFix a couple of planner bugs introduced by the new ability to discard ORDER BY <constant> as redundant. One is that this means query_planner() has to canonicalize pathkeys even when the query jointree is empty; the canonicalization was always a no-op in such cases before, but no more. Also, we have to guard against thinking that a set-returning function is "constant" for this purpose. Add a couple of regression tests for these evidently under-tested cases. Per report from Greg Stark and subsequent experimentation.
48d9d8e1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 07, 2007
CommitterFix up hash functions for datetime datatypes so that they don't take unwarranted liberties with int8 vs float8 values for these types. Specifically, be sure to apply either hashint8 or hashfloat8 depending on HAVE_INT64_TIMESTAMP. Per my gripe of even date.
7af3a6fc
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 06, 2007
CommitterImprove description of SPI_scroll_cursor_move's return values, per a gripe by Pavel Stehule awhile ago.
ad9a99c2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 05, 2007
CommitterFix incorrect comment about the timing of AbsorbFsyncRequests() during checkpoint. The comment claimed that we could do this anytime after setting the checkpoint REDO point, but actually BufferSync is relying on the assumption that buffers dumped by other backends will be fsync'd too. So we really could not do it any sooner than we are doing it.
83aaebba
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 03, 2007
CommitterBackportedFix failure to restart Postgres when Linux kernel returns EIDRM for shmctl().
1c7fe33f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadJul 02, 2007
CommitterReduce the maximum sleep interval in the autovac launcher to 1 second, so that it responds to SIGQUIT reasonably promptly even on machines where SA_RESTART signals restart a sleep from scratch. (This whole area could stand some rethinking, but for now make it work like the other processes do.) Also some marginal stylistic cleanups.
bce7bacd
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 01, 2007
CommitterTreat the autovac launcher more like a regular backend, in that we wait for it to die before telling the bgwriter to initiate shutdown checkpoint. Since it's connected to shared memory, this seems more prudent than the alternative of letting it quit asynchronously. Resolves my complaint of yesterday about repeated shutdown checkpoints in CVS HEAD.
421d5027
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 01, 2007
CommitterBackportedAvoid memory leakage when a series of subtransactions invoke AFTER triggers that are fired at end-of-statement (as is the normal case for foreign keys, for example). In this situation the per-subxact deferred trigger context is always empty when subtransaction exit is reached; so we could free it, but were not doing so, leading to an intratransaction leak of 8K or more per subtransaction. Per off-list example from Viatcheslav Kalinin subsequent to bug #3418 (his original bug report omitted a foreign key constraint needed to cause this leak).
8f55b9a8
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJul 01, 2007
CommitterFix comments not updated in recent patch.
beba7376
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 01, 2007
CommitterAdd 'volatile' to suppress 'variable might be clobbered by longjmp' warning emitted by some versions of gcc.
070907b2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJul 01, 2007
CommitterImprove logging of checkpoints. Patch by Greg Smith, worked over by Heikki and a little bit by me.
9fc25c05
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 30, 2007
CommitterBackportedFix computation of PG_VERSION_NUM by configure: remove unnecessary and unportable backslashes in awk script (per Patrick Welche), and add brackets to prevent autoconf from mangling sed's regexp (the sed call here never did what was expected).
c786796d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJun 29, 2007
CommitterAdd a note that pg_start_backup will take awhile because of new distributed checkpoint behavior. Explain how to work around this by issuing a manual CHECKPOINT command. Per discussion with Heikki.
4303c0fd
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 29, 2007
CommitterBackportedFix a passel of ancient bugs in to_char(), including two distinct buffer overruns (neither of which seem likely to be exploitable as security holes, fortunately, since the provoker can't control the data written). One of these is due to choosing to stomp on the output of a called function, which is bad news in any case; make it treat the called functions' results as read-only. Avoid some unnecessary palloc/pfree traffic too; it's not really helpful to free small temporary objects, and again this is presuming more than it ought to about the nature of the results of called functions. Per report from Patrick Welche and additional code-reading by Imad.
6faf7956
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadJun 29, 2007
CommitterBackportedFix incorrect tests for undef Perl values in some places in plperl.c. The correct test for defined-ness is SvOK(sv), not anything involving SvTYPE. Per bug #3415 from Matt Taylor. Back-patch as far as 8.0; no apparent problem in 7.x.
3cabc675
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadJun 28, 2007
CommitterImplement "distributed" checkpoints in which the checkpoint I/O is spread over a fairly long period of time, rather than being spat out in a burst. This happens only for background checkpoints carried out by the bgwriter; other cases, such as a shutdown checkpoint, are still done at full speed.
867e2c91
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 28, 2007
CommitterFix PGXS conventions so that extensions can be built against Postgres installations whose pg_config program does not appear first in the PATH. Per gripe from Eddie Stanley and subsequent discussions with Fabien Coelho and others.
b09c248b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 26, 2007
CommitterSeparate parse-analysis for utility commands out of parser/analyze.c (which now deals only in optimizable statements), and put that code into a new file parser/parse_utilcmd.c. This helps clarify and enforce the design rule that utility statements shouldn't be processed during the regular parse analysis phase; all interpretation of their meaning should happen after they are given to ProcessUtility to execute. (We need this because we don't retain any locks for a utility statement that's in a plan cache, nor have any way to detect that it's stale.)
46379d6e
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 23, 2007
CommitterAdd a <tip> that log_line_prefix should usually end with a space to provide visual separation from the rest of the log line; I've been noticing lately that quite a few newbies fail to figure this out for themselves. Also a little editorial cleanup of the log_line_prefix description.
ec0bb02d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 22, 2007
CommitterAllow trailing whitespace in parse_real(), for consistency with parse_int() and with itself (strtod allows leading whitespace, so it seems odd not to allow trailing whitespace). parse_bool remains not-whitespace-friendly, but this is generically true for non-numeric GUC variables, so I'll desist from changing it.
ba826299
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 21, 2007
CommitterProvide a HINT listing the allowed unit names when a GUC variable seems to contain a wrong unit specification, per discussion. In passing, fix the code to avoid unnecessary integer overflows when converting units, and to detect overflows when they do occur.
aa55d055
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 21, 2007
CommitterAdd a caveat pointing out that constraint exclusion doesn't work with constraints the planner is unable to disprove, hence simple btree-compatible conditions should be used. We've seen people try to get cute with stuff like date_part(something) = something at least twice now. Even if we wanted to try to teach predtest.c about the properties of date_part, most of the useful variants aren't immutable so nothing could be proved.
4c2d3ccf
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 20, 2007
CommitterRestrict deadlock_timeout to the range for which the implementation actually works sanely, viz not 0 and not more than INT_MAX/1000 (else TimestampTzPlusMilliseconds can overflow). Per discussion with Greg Stark. Since this is a superuser-only setting and there was not previously any big reason to change it, not worth back-patching.
6f0072df
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 20, 2007
CommitterBackportedtransformColumnDefinition failed to complain about create table foo (bar int default null default 3); due to not thinking about the special-case handling of DEFAULT NULL. Problem noticed while investigating bug #3396.
cd407354
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadJun 20, 2007
CommitterBackportedCREATE DOMAIN ... DEFAULT NULL failed because gram.y special-cases DEFAULT NULL and DefineDomain didn't. Bug goes all the way back to original coding of domains. Per bug #3396 from Sergey Burladyan.
a060d5ff
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadJun 20, 2007
CommitterOnly log 'process acquired lock' if we actually did get the lock. This test seems inessential right now since the only control path for not getting the lock is via CHECK_FOR_INTERRUPTS which won't return control to ProcSleep, but it would be important if we ever allow the deadlock code to kill someone else's transaction instead of our own.
9cce91db
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 19, 2007
CommitterCode review for log_lock_waits patch. Don't try to issue log messages from within a signal handler (this might be safe given the relatively narrow code range in which the interrupt is enabled, but it seems awfully risky); do issue more informative log messages that tell what is being waited for and the exact length of the wait; minor other code cleanup. Greg Stark and Tom Lane
6e072287
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 19, 2007
CommitterArrange for quote_identifier() and pg_dump to not quote keywords that are unreserved according to the grammar. The list of unreserved words has gotten extensive enough that the unnecessary quoting is becoming a bit of an eyesore. To do this, add knowledge of the keyword category to keywords.c's table. (Someday we might be able to generate keywords.c's table and the keyword lists in gram.y from a common source.) For the moment, lie about WITH's status in the table so it will still get quoted --- this is because of the expectation that WITH will become reserved when the SQL recursive-queries patch gets done.
4c310eca
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 18, 2007
CommitterBack-patch 8.2 fix that complains if trying to extend a relation encounters a buffer containing a non-zeroed page. This seems appropriate now that the 8.2 fix has been seen to save at least one user from data loss due to a buggy kernel (per report from Jaime Silvela 7-May-07). I'd go further back than 8.1, except that the 8.0-to-8.1 bufmgr changes are large enough that the patch doesn't work immediately; I'm hesitant to make a change without more extensive analysis than I have time for now.
838e2862
REL8_1_STABLE8.1.10
No linked threadJun 18, 2007
CommitterUpdate obsolete comment: it's no longer the case that mdread() will allow reads beyond EOF, except by special coercion.
de6a6383
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 18, 2007
CommitterMarginal hacking to improve the speed of COPY OUT. I had found in a bit of profiling that CopyAttributeOutText was taking an unreasonable fraction of the backend run time (like 66%!) on the following trivial test case:
011b51cb
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 17, 2007
CommitterRevert an ill-considered portion of my patch of 12-Mar, which tried to save a few lines in sql_exec_error_callback() by using the function source string field that the patch added to SQL function cache entries. This doesn't work because the fn_extra field isn't filled in yet during init_sql_fcache(). Probably it could be made to work, but it doesn't seem appropriate to contort the main code paths to make an error-reporting path a tad faster. Per report from Pavel Stehule.
6775c010
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 17, 2007
CommitterTweak the API for per-datatype typmodin functions so that they are passed an array of strings rather than an array of integers, and allow any simple constant or identifier to be used in typmods; for example create table foo (f1 widget(42,'23skidoo',point)); Of course the typmodin function has still got to pack this info into a non-negative int32 for storage, but it's still a useful improvement in flexibility, especially considering that you can do nearly anything if you are willing to keep the info in a side table. We can get away with this change since we have not yet released a version providing user-definable typmods. Per discussion.
23347231
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 15, 2007
CommitterAdd some simple defenses against null fields in pg_largeobject, and add comments noting that there's an alignment assumption now that the data field could be in 1-byte-header format. Per discussion with Greg Stark.
e976fd43
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 12, 2007
CommitterAdd some comments about the safety of accessing rolpassword without using the normal heap_getattr() machinery. Per Greg Stark.
152133bf
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 12, 2007
CommitterMinor comment fixes.
8be9b50a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 12, 2007
CommitterBackportedFix DecodeDateTime to allow timezone to appear before year. This had historically worked in some but not all cases, but as of 8.2 it failed for all timezone formats. Fix, and add regression test cases to catch future regressions in this area. Per gripe from Adam Witney.
d0599994
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJun 12, 2007
CommitterImprove UPDATE/DELETE WHERE CURRENT OF so that they can be used from plpgsql with a plpgsql-defined cursor. The underlying mechanism for this is that the main SQL engine will now take "WHERE CURRENT OF $n" where $n is a refcursor parameter. Not sure if we should document that fact or consider it an implementation detail. Per discussion with Pavel Stehule.
a9545b3a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 11, 2007
CommitterMinor wording improvement.
bdc71c2c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 11, 2007
CommitterSupport UPDATE/DELETE WHERE CURRENT OF cursor_name, per SQL standard.
6808f1b1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 11, 2007
CommitterTeach heapam code to know the difference between a real seqscan and the pseudo HeapScanDesc created for a bitmap heap scan. This avoids some useless overhead during a bitmap scan startup, in particular invoking the syncscan code. (We might someday want to do that, but right now it's merely useless contention for shared memory, to say nothing of possibly pushing useful entries out of syncscan's small LRU list.) This also allows elimination of ugly pgstat_discount_heap_scan() kluge.
85d72f05
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 09, 2007
CommitterInsert ORDER BY into a few regression test queries that now have unstable results due to syncscan patch, when shared_buffers is small enough. Per buildfarm reports and some local testing with shared_buffers set to the lowest value considered by initdb.
7063c46f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 09, 2007
CommitterBackportedAllow numeric_fac() to be interrupted, since it can take quite a while for large inputs. Also cause it to error out immediately if the result will overflow, instead of grinding through a lot of calculation first. Per gripe from Jim Nasby.
e17e40f7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadJun 09, 2007
CommitterAdd note that LIMIT without ORDER BY can produce outright nondeterministic results. Necessary due to introduction of syncscan patch.
4213e5f0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 08, 2007
CommitterArrange for large sequential scans to synchronize with each other, so that when multiple backends are scanning the same relation concurrently, each page is (ideally) read only once.
a04a4235
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 08, 2007
CommitterRedefine IsTransactionState() to only return true for TRANS_INPROGRESS state, which is the only state in which it's safe to initiate database queries. It turns out that all but two of the callers thought that's what it meant; and the other two were using it as a proxy for "will GetTopTransactionId() return a nonzero XID"? Since it was in fact an unreliable guide to that, make those two just invoke GetTopTransactionId() always, then deal with a zero result if they get one.
6d6d14b6
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 07, 2007
CommitterRework temp_tablespaces patch so that temp tablespaces are assigned separately for each temp file, rather than once per sort or hashjoin; this allows spreading the data of a large sort or join across multiple tablespaces. (I remain dubious that this will make any difference in practice, but certain people insisted.) Arrange to cache the results of parsing the GUC variable instead of recomputing from scratch on every demand, and push usage of the cache down to the bottommost fd.c level.
24ee8af5
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 07, 2007
CommitterBackportedFix array_dims() example to be consistent with the data previously shown. Christian Rossow
04d919a1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadJun 07, 2007
CommitterFix up text concatenation so that it accepts all the reasonable cases that were accepted by prior Postgres releases. This takes care of the loose end left by the preceding patch to downgrade implicit casts-to-text. To avoid breaking desirable behavior for array concatenation, introduce a new polymorphic pseudo-type "anynonarray" --- the added concatenation operators are actually text || anynonarray and anynonarray || text.
2d4db367
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 06, 2007
CommitterMinor editorialization: don't flush plan cache without need.
7dab4f75
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 05, 2007
CommitterDowngrade implicit casts to text to be assignment-only, except for the ones from the other string-category types; this eliminates a lot of surprising interpretations that the parser could formerly make when there was no directly applicable operator.
31edbadf
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 05, 2007
CommitterCreate a GUC parameter temp_tablespaces that allows selection of the tablespace(s) in which to store temp tables and temporary files. This is a list to allow spreading the load across multiple tablespaces (a random list element is chosen each time a temp object is to be created). Temp files are not stored in per-database pgsql_tmp/ directories anymore, but per-tablespace directories.
acfce502
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 03, 2007
CommitterBackportedFix erroneous error reporting for overlength input in text_date(), text_time(), and text_timetz(). 7.4-vintage bug found by Greg Stark.
376ee150
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+21 more
No linked threadJun 02, 2007
CommitterBackportedFix aboriginal bug in BufFileDumpBuffer that would cause it to write the wrong data when dumping a bufferload that crosses a component-file boundary. This probably has not been seen in the wild because (a) component files are normally 1GB apiece and (b) non-block-aligned buffer usage is relatively rare. But it's fairly easy to reproduce a problem if one reduces RELSEG_SIZE in a test build. Kudos to Kurt Harriman for spotting the bug.
964ec46c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadJun 01, 2007
CommitterMake CREATE/DROP/RENAME DATABASE wait a little bit to see if other backends will exit before failing because of conflicting DB usage. Per discussion, this seems a good idea to help mask the fact that backend exit takes nonzero time. Remove a couple of thereby-obsoleted sleeps in contrib and PL regression test sequences.
bd0a2609
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 01, 2007
CommitterBuy back some of the cycles spent in more-expensive hash functions by selecting power-of-2, rather than prime, numbers of buckets in hash joins. If the hash functions are doing their jobs properly by making all hash bits equally random, this is good enough, and it saves expensive integer division and modulus operations.
bd2c980b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 01, 2007
CommitterBackportedFix performance problems in multi-batch hash joins by ensuring that we select a well-randomized batch number even when given a poorly-randomized hash value. This is a bit inefficient but seems the only practical solution given the constraint that we can't change the hash functions in released branches. Per report from Joseph Shraibman.
3e2c198e
REL8_2_STABLE8.2.5REL8_1_STABLE8.1.10
No linked threadJun 01, 2007
CommitterFix several hash functions that were taking chintzy shortcuts instead of delivering a well-randomized hash value. I got religion on this after observing that performance of multi-batch hash join degrades terribly if the higher-order bits of hash values aren't random, as indeed was true for say hashes of small integer values. It's now expected and documented that hash functions should use hash_any or some comparable method to ensure that all bits of their output are about equally random.
1f559b7d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJun 01, 2007
CommitterThe shortcut exit that I recently added to ExecInitIndexScan() for EXPLAIN-only operation was a little too short; it skipped initializing the node's result tuple type, which may be needed depending on what's above the indexscan node. Call ExecAssignResultTypeFromTL before exiting. (For good luck I moved up the ExecAssignScanProjectionInfo call as well, so that everything except indexscan-specific initialization will still be done.) Per example from Grant Finnemore.
cc3e9dee
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 31, 2007
CommitterChange build_index_pathkeys() so that the expressions it builds to represent index key columns always have the type expected by the index's associated operators, ie, we add RelabelType nodes when dealing with binary-compatible index opclasses. This is needed to get varchar indexes to play nicely with the new EquivalenceClass machinery, as per recent gripe from Josh Berkus that CVS HEAD was failing to match a varchar index column to a constant restriction in the query.
10f719af
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 31, 2007
CommitterBackportedFix overly-strict sanity check in BeginInternalSubTransaction that made it fail when used in a deferred trigger. Bug goes back to 8.0; no doubt the reason it hadn't been noticed is that we've been discouraging use of user-defined constraint triggers. Per report from Frank van Vugt.
fa0e318f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadMay 30, 2007
CommitterMake large sequential scans and VACUUMs work in a limited-size "ring" of buffers, rather than blowing out the whole shared-buffer arena. Aside from avoiding cache spoliation, this fixes the problem that VACUUM formerly tended to cause a WAL flush for every page it modified, because we had it hacked to use only a single buffer. Those flushes will now occur only once per ring-ful. The exact ring size, and the threshold for seqscans to switch into the ring usage pattern, remain under debate; but the infrastructure seems done. The key bit of infrastructure is a new optional BufferAccessStrategy object that can be passed to ReadBuffer operations; this replaces the former StrategyHintVacuum API.
d526575f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 30, 2007
CommitterFix trivial misspelling in comment.
14c4d3de
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 30, 2007
CommitterTweak the code in a couple of places to try to deliver more user-friendly error messages when a single COPY line is too long for us to handle. Per example from Johann Spies.
fa98a86f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 28, 2007
CommitterOoops, I was too busy worrying about getting the transactional infrastructure right to think carefully about how insert and delete counts map to n_live_tuples. Of course a deletion should reduce n_live_tuples.
97d12b43
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 27, 2007
Committerpgstat's on-proc-exit hook has to execute after the last transaction commit or abort within a backend; rearrange InitPostgres processing to make it so. Revealed by just-added Asserts along with ECPG regression tests (hm, I wonder why the core regression tests didn't expose it?). This possibly is another reason for missing stats updates ...
8d675c85
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 27, 2007
CommitterFix up pgstats counting of live and dead tuples to recognize that committed and aborted transactions have different effects; also teach it not to assume that prepared transactions are always committed.
77947c51
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 27, 2007
CommitterRepair two constraint-exclusion corner cases triggered by proving that an inheritance child of an UPDATE/DELETE target relation can be excluded by constraints. I had rearranged some code in set_append_rel_pathlist() to avoid "useless" work when a child is excluded, but overdid it and left the child with no cheapest_path entry, causing possible failure later if the appendrel was involved in a join. Also, it seems that the dummy plan generated by inheritance_planner() when all branches are excluded has to be a bit less dummy now than was required in 8.2. Per report from Jan Wieck. Add his test case to the regression tests.
cadb7833
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 26, 2007
CommitterCreate hooks to let a loadable plugin monitor (or even replace) the planner and/or create plans for hypothetical situations; in particular, investigate plans that would be generated using hypothetical indexes. This is a heavily-rewritten version of the hooks proposed by Gurjeet Singh for his Index Advisor project. In this formulation, the index advisor can be entirely a loadable module instead of requiring a significant part to be in the core backend, and plans can be generated for hypothetical indexes without requiring the creation and rolling-back of system catalog entries.
604ffd28
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 25, 2007
CommitterRemove ruleutils.c's use of varnoold/varoattno as a shortcut for determining what a Var node refers to. This is no longer necessary because the new flat-range-table representation of plan trees makes it relatively easy to dig down through child plan levels to find the original reference; and to keep doing it that way, we'd have to store joinaliasvars lists in flattened RTEs, as demonstrated by bug report from Leszek Trenkner. This change makes varnoold/varoattno truly just debug aids, which wasn't quite the case before. Perhaps we should drop them, or only have them in assert-enabled builds?
ce5b24ab
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 24, 2007
CommitterAvoid assuming that the fields of struct timeval have exactly type long. This is probably incorrect on some platforms, and definitely draws a compiler warning on Darwin.
a868e246
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 24, 2007
CommitterBackportedRepair planner bug introduced in 8.2 by ability to rearrange outer joins: in cases where a sub-SELECT inserts a WHERE clause between two outer joins, that clause may prevent us from re-ordering the two outer joins. The code was considering only the joins' own ON-conditions in determining reordering safety, which is not good enough. Add a "delay_upper_joins" flag to OuterJoinInfo to flag that we have detected such a clause and higher-level outer joins shouldn't be permitted to commute with this one. (This might seem overly coarse, but given the current rules for OJ reordering, it's sufficient AFAICT.)
11086f2f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadMay 22, 2007
CommitterBackportedFix best_inner_indexscan to return both the cheapest-total-cost and cheapest-startup-cost innerjoin indexscans, and make joinpath.c consider both of these (when different) as the inside of a nestloop join. The original design was based on the assumption that indexscan paths always have negligible startup cost, and so total cost is the only important figure of merit; an assumption that's obviously broken by bitmap indexscans. This oversight could lead to choosing poor plans in cases where fast-start behavior is more important than total cost, such as LIMIT and IN queries. 8.1-vintage brain fade exposed by an example from Chuck D.
d7153c5f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more
No linked threadMay 22, 2007
CommitterTeach tuplestore.c to throw away data before the "mark" point when the caller is using mark/restore but not rewind or backward-scan capability. Insert a materialize plan node between a mergejoin and its inner child if the inner child is a sort that is expected to spill to disk. The materialize shields the sort from the need to do mark/restore and thereby allows it to perform its final merge pass on-the-fly; while the materialize itself is normally cheap since it won't spill to disk unless the number of tuples with equal key values exceeds work_mem.
2415ad98
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 21, 2007
CommitterTo support external compression of archived WAL data, add a flag bit to WAL records that shows whether it is safe to remove full-page images (ie, whether or not an on-line backup was in progress when the WAL entry was made). Also make provision for an XLOG_NOOP record type that can be used to fill in the extra space when decompressing the data for restore.
a8d539f1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 20, 2007
CommitterBackportedRemove redundant logging of send failures when SSL is in use. While pqcomm.c had been taught not to do that ages ago, the SSL code was helpfully bleating anyway. Resolves some recent reports such as bug #3266; however the underlying cause of the related bug #2829 is still unclear.
d1972c52
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+21 more
No linked threadMay 18, 2007
CommitterBackportedTemporary fix for the problem that pg_stat_activity, inet_client_addr(), and inet_server_addr() fail if the client connected over a "scoped" IPv6 address. In this case getnameinfo() will return a string ending with a poorly-standardized "%something" zone specifier, which these functions try to feed to network_in(), which won't take it. So that we don't lose functionality altogether, suppress the zone specifier before giving the string to network_in(). Per report from Brian Hirt.
dbb76935
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadMay 17, 2007
CommitterFix parameter recalculation for Limit nodes: during a ReScan call we must recompute the limit/offset immediately, so that the updated values are available when the child's ReScan function is invoked. Add a regression test for this, too. Bug is new in HEAD (due to the bounded-sorting patch) so no need for back-patch.
b11123b6
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 17, 2007
CommitterGet rid of the pg_shdepend entry for a TOAST table; it's unnecessary since there's an indirect dependency on the owner via the parent table. We were already handling indexes that way, but not toast tables for some reason. Saves a little catalog space and cuts down the verbosity of checkSharedDependencies reports.
0a9cbcbf
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 14, 2007
CommitterFix up grammar and translatability of recent checkSharedDependencies patch; also make the code logic a bit more self-consistent.
2b321533
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 14, 2007
CommitterPrevent RevalidateCachedPlan from making any permanent change in ActiveSnapshot. Having it affect ActiveSnapshot only in the unusual case of needing to replan seems a bad idea, and there's also the problem that the created snap might be in a relatively short-lived context, as noted by Jan Wieck. Also, there's no need to force a new snap at all unless we are called with no snap currently set, which is an unusual case in itself.
fd53a67d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 14, 2007
CommitterBackportedImprove predicate_refuted_by_simple_clause() to handle IS NULL and IS NOT NULL more completely. The motivation for having it understand IS NULL at all was to allow use of "foo IS NULL" as one of the subsets of a partitioning on "foo", but as reported by Aleksander Kmetec, it wasn't really getting the job done. Backpatch to 8.2 since this is arguably a performance bug.
1856e609
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadMay 12, 2007
CommitterFix the problem that creating a user-defined type named _foo, followed by one named foo, would work but the other ordering would not. If a user-specified type or table name collides with an existing auto-generated array name, just rename the array type out of the way by prepending more underscores. This should not create any backward-compatibility issues, since the cases in which this will happen would have failed outright in prior releases.
9aa3c782
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 12, 2007
CommitterBackportedFix my oversight in enabling domains-of-domains: ALTER DOMAIN ADD CONSTRAINT needs to check the new constraint against columns of derived domains too.
d8326119
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadMay 11, 2007
CommitterSupport arrays of composite types, including the rowtypes of regular tables and views (but not system catalogs, nor sequences or toast tables). Get rid of the hardwired convention that a type's array type is named exactly "_type", instead using a new column pg_type.typarray to provide the linkage. (It still will be named "_type", though, except in odd corner cases such as maximum-length type names.)
bc8036fc
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 11, 2007
CommitterReserve some pg_statistic "kind" codes for use by the ESRI ST_Geometry datatype project. Per request from Ale Raza (araza at esri.com).
5b7cf08d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 08, 2007
CommitterAdd an explicit comment about POSIX time zone names having the reverse sign convention from everyplace else in Postgres. I don't suppose that this will stop people from being confused, but at least we can say that it's documented.
97f79694
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 08, 2007
CommitterAdd a line to the EXPLAIN ANALYZE output for a Sort node, showing the actual sort strategy and amount of space used. By popular demand.
d2a4a406
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 04, 2007
Committertas() support for Renesas' M32R processor. Kazuhiro Inaoka
c7464720
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 04, 2007
CommitterSuppress a recently-introduced 'variable might be clobbered by longjmp' warning.
fab789ea
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 04, 2007
CommitterA few fixups in error handling: mark pg_re_throw() as noreturn for gcc, and for other compilers, insert a dummy exit() call so that they understand PG_RE_THROW() doesn't return. Insert fflush(stderr) in ExceptionalCondition, per recent buildfarm evidence that that might not happen automatically on some platforms. And const-ify ExceptionalCondition's declaration while at it.
79ca7ffe
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 04, 2007
CommitterTeach tuplesort.c about "top N" sorting, in which only the first N tuples need be returned. We keep a heap of the current best N tuples and sift-up new tuples into it as we scan the input. For M input tuples this means only about M*log(N) comparisons instead of M*log(M), not to mention a lot less workspace when N is small --- avoiding spill-to-disk for large M is actually the most attractive thing about it. Patch includes planner and executor support for invoking this facility in ORDER BY ... LIMIT queries. Greg Stark, with some editorialization by moi.
d26559db
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 04, 2007
CommitterTweak hash index AM to use the new ReadOrZeroBuffer bufmgr API when fetching pages it intends to zero immediately. Just to show there is some use for that function besides WAL recovery :-). Along the way, fold _hash_checkpage and _hash_pageinit calls into _hash_getbuf and friends, instead of expecting callers to do that separately.
0fef38da
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 03, 2007
CommitterDept. of second thoughts: add comments cautioning against using ReadOrZeroBuffer to fetch pages from beyond physical EOF. This would usually work, but would cause problems for md.c if writes occurred beyond a segment boundary when the previous segment file hadn't been fully extended.
63735ca8
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 02, 2007
CommitterDuring WAL recovery, when reading a page that we intend to overwrite completely from the WAL data, don't bother to physically read it; just have bufmgr.c return a zeroed-out buffer instead. This speeds recovery significantly, and also avoids unnecessary failures when a page-to-be-overwritten has corrupt page headers on disk. This replaces a former kluge that accomplished the latter by pretending zero_damaged_pages was always ON during WAL recovery; which was OK when the kluge was put in, but is unsafe when restoring a WAL log that was written with full_page_writes off.
8c3cc86e
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 02, 2007
CommitterFix things so that when CREATE INDEX CONCURRENTLY sets pg_index.indisvalid true at the very end of its processing, the update is broadcast via a shared-cache-inval message for the index; without this, existing backends that already have relcache entries for the index might never see it become valid. Also, force a relcache inval on the index's parent table at the same time, so that any cached plans for that table are re-planned; this ensures that the newly valid index will be used if appropriate. Aside from making C.I.C. behave more reasonably, this is necessary infrastructure for some aspects of the HOT patch. Pavan Deolasee, with a little further stuff from me.
8ec94385
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 02, 2007
CommitterFix oversight in PG_RE_THROW processing: it's entirely possible that there isn't any place to throw the error to. If so, we should treat the error as FATAL, just as we would have if it'd been thrown outside the PG_TRY block to begin with.
88f1fd29
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMay 02, 2007
CommitterBackportedFix a thinko in my patch of a couple months ago for bug #3116: it did the wrong thing when inlining polymorphic SQL functions, because it was using the function's declared return type where it should have used the actual result type of the current call. In 8.1 and 8.2 this causes obvious failures even if you don't have assertions turned on; in 8.0 and 7.4 it would only be a problem if the inlined expression were used as an input to a function that did run-time type determination on its inputs. Add a regression test, since this is evidently an under-tested area.
b4349519
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+21 more
No linked threadMay 01, 2007
CommitterChange the timestamps recorded in transaction commit/abort xlog records from time_t to TimestampTz representation. This provides full gettimeofday() resolution of the timestamps, which might be useful when attempting to do point-in-time recovery --- previously it was not possible to specify the stop point with sub-second resolution. But mostly this is to get rid of TimestampTz-to-time_t conversion overhead during commit. Per my proposal of a day or two back.
c4320619
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 30, 2007
CommitterFix oversight in my patch of yesterday: forgot to ensure that stats would still be forced out at backend exit.
641912b4
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 30, 2007
CommitterImplement rate-limiting logic on how often backends will attempt to send messages to the stats collector. This avoids the problem that enabling stats_row_level for autovacuum has a significant overhead for short read-only transactions, as noted by Arjen van der Meijden. We can avoid an extra gettimeofday call by piggybacking on the one done for WAL-logging xact commit or abort (although that doesn't help read-only transactions, since they don't WAL-log anything).
957d08c8
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 30, 2007
CommitterMarginal performance hack: use a dedicated routine instead of copyObject to copy nodes that are known to be Vars during plan reference adjustment. Saves useless memzero operation as well as the big switch in copyObject.
57b82bf3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 30, 2007
CommitterMarginal performance hack: avoid unnecessary work in expression_tree_mutator. We can just palloc, instead of using makeNode, when we are going to overwrite the whole node anyway in the FLATCOPY macro. Also, use FLATCOPY instead of copyObject for common node types Var and Const.
afaa6b98
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 30, 2007
CommitterMarginal performance hack: remove the loop that used to be needed to look through a freelist for a chunk of adequate size. For a long time now, all elements of a given freelist have been exactly the same allocated size, so we don't need a loop. Since the loop never iterated more than once, you'd think this wouldn't matter much, but it makes a noticeable savings in a simple test --- perhaps because the compiler isn't optimizing on a mistaken assumption that the loop would repeat. AllocSetAlloc is called often enough that saving even a couple of instructions is worthwhile.
39a333aa
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 30, 2007
CommitterModify processing of DECLARE CURSOR and EXPLAIN so that they can resolve the types of unspecified parameters when submitted via extended query protocol. This worked in 8.2 but I had broken it during plancache changes. DECLARE CURSOR is now treated almost exactly like a plain SELECT through parse analysis, rewrite, and planning; only just before sending to the executor do we divert it away to ProcessUtility. This requires a special-case check in a number of places, but practically all of them were already special-casing SELECT INTO, so it's not too ugly. (Maybe it would be a good idea to merge the two by treating IntoClause as a form of utility statement? Not going to worry about that now, though.) That approach doesn't work for EXPLAIN, however, so for that I punted and used a klugy solution of running parse analysis an extra time if under extended query protocol.
bbbe825f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 27, 2007
CommitterBackportedFix dynahash.c to suppress hash bucket splits while a hash_seq_search() scan is in progress on the same hashtable. This seems the least invasive way to fix the recently-recognized problem that a split could cause the scan to visit entries twice or (with much lower probability) miss them entirely. The only field-reported problem caused by this is the "failed to re-find shared lock object" PANIC in COMMIT PREPARED reported by Michel Dorochevsky, which was caused by multiply visited entries. However, it seems certain that mdsync() is vulnerable to missing required fsync's due to missed entries, and I am fearful that RelationCacheInitializePhase2() might be at risk as well. Because of that and the generalized hazard presented by this bug, back-patch all the supported branches.
a2e923a6
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadApr 26, 2007
CommitterRemove some of the most blatant brain-fade in the recent guc patch (it's so nice to have a buildfarm member that actively rejects naked uses of strcasecmp). This coding is still pretty awful, though, since it's going to be O(N^2) in the number of guc variables. May I direct your attention to bsearch?
dbcd9d61
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 22, 2007
CommitterSome further performance tweaks for planning large inheritance trees that are mostly excluded by constraints: do the CE test a bit earlier to save some adjust_appendrel_attrs() work on excluded children, and arrange to use array indexing rather than rt_fetch() to fetch RTEs in the main body of the planner. The latter is something I'd wanted to do for awhile anyway, but seeing list_nth_cell() as 35% of the runtime gets one's attention.
afcf09dd
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 21, 2007
CommitterAvoid useless work during set_plain_rel_pathlist() when the relation will be excluded by constraint exclusion anyway. Greg Stark
48239e15
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 21, 2007
CommitterTweak make_inh_translation_lists() to check the common case wherein parent and child attnums are the same, before it grovels through each and every child column looking for a name match. Saves some time in large inheritance trees, per example from Greg.
925ca9d7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 21, 2007
CommitterImprove the way in which CatalogCacheComputeHashValue combines multiple key values: don't throw away perfectly good hash bits, and increase the shift distances so as to provide more separation in the common case where some of the key values are small integers (and so their hashes are too, because hashfunc.c doesn't try all that hard). This reduces the runtime of SearchCatCache by a factor of 4 in an example provided by Greg Stark, in which the planner spends a whole lot of time searching the two-key STATRELATT cache. It seems unlikely to hurt in other cases, but maybe we could do even better?
402bd494
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 21, 2007
CommitterAdjust pgstat_initstats() to avoid repeated searches of the TabStat arrays when a relation is opened multiple times in the same transaction. This is particularly useful for system catalogs, which we may heap_open or index_open many times in a transaction, and it doesn't really cost anything extra even if the rel is touched but once. Motivated by study of an example from Greg Stark, in which pgstat_initstats() accounted for an unreasonably large fraction of the runtime.
11da4c67
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 21, 2007
CommitterTweak set_rel_width() to avoid redundant executions of getrelid(). In very large queries this accounts for a noticeable fraction of planning time. Per an example from Greg Stark.
ca3d14f2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 21, 2007
CommitterBackportedFix markup.
23c8b0cc
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadApr 20, 2007
CommitterBackportedSupport explicit placement of the temporary-table schema within search_path. This is needed to allow a security-definer function to set a truly secure value of search_path. Without it, a malicious user can use temporary objects to execute code with the privileges of the security-definer function. Even pushing the temp schema to the back of the search path is not quite good enough, because a function or operator at the back of the path might still capture control from one nearer the front due to having a more exact datatype match. Hence, disable searching the temp schema altogether for functions and operators.
aa27977f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadApr 20, 2007
CommitterBackportedSync timezone data with 2007e zic release.
9350056e
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadApr 19, 2007
CommitterFix missed PACKAGE_STRING.
c0a56228
REL8_2_STABLE8.2.4
No linked threadApr 19, 2007
CommitterBackportedRepair PANIC condition in hash indexes when a previous index extension attempt failed (due to lock conflicts or out-of-space). We might have already extended the index's filesystem EOF before failing, causing the EOF to be beyond what the metapage says is the last used page. Hence the invariant maintained by the code needs to be "EOF is at or beyond last used page", not "EOF is exactly the last used page". Problem was created by my patch of 2006-11-19 that attempted to repair bug #2737. Since that was back-patched to 7.4, this needs to be as well. Per report and test case from Vlastimil Krejcir.
9d37c038
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+21 more
No linked threadApr 19, 2007
CommitterBackportedFix plpgsql to avoid reference to already-freed memory when returning a pass-by-reference data type and the RETURN statement is within an EXCEPTION block. Bug introduced by my fix of 2007-01-28 to use per-subtransaction ExprContexts/EStates; since that wasn't back-patched into older branches, only 8.2 and HEAD are affected. Per report from Gary Winslow.
77a41e71
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadApr 19, 2007
CommitterFix condition for whether end_heap_rewrite must fsync, per Heikki.
836feeda
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 17, 2007
CommitterDon't assume rd_smgr stays open across all of a rewriteheap operation; doing so can result in crash if an sinval reset occurs meanwhile. I believe this explains intermittent buildfarm failures in cluster test.
4942ee65
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 17, 2007
CommitterBackportedRewrite choose_bitmap_and() to make it more robust in the presence of competing alternatives for indexes to use in a bitmap scan. The former coding took estimated selectivity as an overriding factor, causing it to sometimes choose indexes that were much slower to scan than ones with a slightly worse selectivity. It was also too narrow-minded about which combinations of indexes to consider ANDing. The rewrite makes it pay more attention to index scan cost than selectivity; this seems sane since it's impossible to have very bad selectivity with low cost, whereas the reverse isn't true. Also, we now consider each index alone, as well as adding each index to an AND-group led by each prior index, for a total of about O(N^2) rather than O(N) combinations considered. This makes the results much less dependent on the exact order in which the indexes are considered. It's still a lot cheaper than an O(2^N) exhaustive search. A prefilter step eliminates all but the cheapest of those indexes using the same set of WHERE conditions, to keep the effective value of N down in scenarios where the DBA has created lots of partially-redundant indexes.
2e824a8e
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more
No linked threadApr 17, 2007
CommitterFix erroneous column counts in some documentation tables. Brian Gough
2b99411d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 17, 2007
CommitterAnd remove 'em again ...
a7664ca3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 17, 2007
CommitterTemporarily re-add derived files, in hopes of straightening out their CVS status.
91c62e21
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 17, 2007
CommitterTweak clean_encoding_name() API to avoid need to cast away const. Kris Jurka
274dfdb5
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 16, 2007
CommitterBackportedFix pg_dump to not crash if -t or a similar switch is used to select a serial sequence for dumping without also selecting its owning table. Make it not try to emit ALTER SEQUENCE OWNED BY in this situation. Per report from Michael Nolan.
6ee2a3be
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadApr 16, 2007
CommitterMake plancache store cursor options so it can pass them to planner during a replan. I had originally thought this was not necessary, but the new SPI facilities create a path whereby queries planned with non-default options can get into the cache, so it is necessary.
42dc4b66
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 16, 2007
CommitterSupport scrollable cursors (ie, 'direction' clause in FETCH) in plpgsql. Pavel Stehule, reworked a bit by Tom.
f01b1965
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 16, 2007
CommitterExpose more cursor-related functionality in SPI: specifically, allow access to the planner's cursor-related planning options, and provide new FETCH/MOVE routines that allow access to the full power of those commands. Small refactoring of planner(), pg_plan_query(), and pg_plan_queries() APIs to make it convenient to pass the planning options down from SPI.
66888f74
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 16, 2007
CommitterAvoid running build_index_pathkeys() in situations where there cannot possibly be any useful pathkeys --- to wit, queries with neither any join clauses nor any ORDER BY request. It's nearly free to check for this case and it saves a useful fraction of the planning time for simple queries.
fa92d21a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 15, 2007
CommitterBackportedRearrange mdsync() looping logic to avoid the problem that a sufficiently fast flow of new fsync requests can prevent mdsync() from ever completing. This was an unforeseen consequence of a patch added in Mar 2006 to prevent the fsync request queue from overflowing. Problem identified by Heikki Linnakangas and independently by ITAGAKI Takahiro; fix based on ideas from Takahiro-san, Heikki, and Tom.
995ba280
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more
No linked threadApr 12, 2007
CommitterBackportedCancel pending fsync requests during WAL replay of DROP DATABASE, per bug report from David Darville. Back-patch as far as 8.1, which may or may not have the problem but it seems a safe change anyway.
ebb6bae5
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more
No linked threadApr 12, 2007
CommitterCode review for btree page split WAL reduction patch. Make it actually work (original code *always* created a full-page image for the left page, thus leaving the intended savings unrealized), avoid risk of not having enough room on the page during xlog restore, squeeze out another couple bytes in the xlog record, clean up neglected comments.
226a1005
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 11, 2007
CommitterMinor tweaking of index special-space definitions so that the various index types can be reliably distinguished by examining the special space on an index page. Per my earlier proposal, plus the realization that there's no need for btree's vacuum cycle ID to cycle through every possible 16-bit value. Restricting its range a little costs nearly nothing and eliminates the possibility of collisions. Memo to self: remember to make bitmap indexes play along with this scheme, assuming that patch ever gets accepted.
56218fbc
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 09, 2007
CommitterMinor editorialization on CLUSTER reference page.
e51ac1b8
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 08, 2007
CommitterMake CLUSTER MVCC-safe. Heikki Linnakangas
7b78474d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 08, 2007
CommitterAdd note that TRUNCATE is not MVCC-safe.
d7e2de66
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 07, 2007
CommitterDon't remove the 'alias' field from flattened rangetable entries; there are some corner cases where this is needed by ruleutils.c for proper display of variables during EXPLAIN.
b396df84
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 06, 2007
CommitterMake 'col IS NULL' clauses be indexable conditions.
f02a82b6
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 06, 2007
CommitterFix some now-obsolete comments about the space used by various data types.
146c83c0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 06, 2007
CommitterNow that core functionality is depending on autoconf's AC_C_BIGENDIAN to be right, there seems precious little reason to have a pile of hand-maintained endianness definitions in src/include/port/*.h. Get rid of those, and make the couple of places that used them depend on WORDS_BIGENDIAN instead.
37a609b2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 06, 2007
CommitterSupport varlena fields with single-byte headers and unaligned storage.
3e23b68d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 06, 2007
CommitterRemove the CheckpointStartLock in favor of having backends show whether they are in their commit critical sections via flags in the ProcArray. Checkpoint can watch the ProcArray to determine when it's safe to proceed. This is a considerably better solution to the original problem of race conditions between checkpoint and transaction commit: it speeds up commit, since there's one less lock to fool with, and it prevents the problem of checkpoint being delayed indefinitely when there's a constant flow of commits. Heikki, with some kibitzing from Tom.
9c9b6194
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 03, 2007
CommitterDecouple the values of TOAST_TUPLE_THRESHOLD and TOAST_MAX_CHUNK_SIZE. Add the latter to the values checked in pg_control, since it can't be changed without invalidating toast table content. This commit in itself shouldn't change any behavior, but it lays some necessary groundwork for experimentation with these toast-control numbers.
b3005276
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 03, 2007
CommitterBackportedFix check_sql_fn_retval to allow the case where a SQL function declared to return void ends with a SELECT, if that SELECT has a single result that is also of type void. Without this, it's hard to write a void function that calls another void function. Per gripe from Peter.
9a527f18
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadApr 02, 2007
CommitterSupport enum data types. Along the way, use macros for the values of pg_type.typtype whereever practical. Tom Dunstan, with some kibitzing from Tom Lane.
57690c68
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadApr 02, 2007
CommitterBackportedFix oversight in coding of _bt_start_vacuum: we can't assume that the LWLock will be released by transaction abort before _bt_end_vacuum gets called. If either of these "can't happen" errors actually happened, we'd freeze up trying to acquire an already-held lock. Latest word is that this does not explain Martin Pitt's trouble report, but it still looks like a bug.
8875d098
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadMar 30, 2007
Committerexec_parse_message neglected to copy parameter type array into the required memory context when handling client-specified parameter types for an unnamed statement. Per report from Kris Jurka.
972e20b4
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 29, 2007
CommitterTeach CLUSTER to skip writing WAL if not needed (ie, not using archiving) --- Simon. Also, code review and cleanup for the previous COPY-no-WAL patches --- Tom.
fba8113c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 29, 2007
CommitterFix uninitialized-variable bug.
0565579c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 28, 2007
CommitterFix array coercion expressions to ensure that the correct volatility is seen by code inspecting the expression. The best way to do this seems to be to drop the original representation as a function invocation, and instead make a special expression node type that represents applying the element-type coercion function to each array element. In this way the element function is exposed and will be checked for volatility. Per report from Guillaume Smet.
bf940763
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 27, 2007
CommitterBackportedFix typo, ensable -> enable, per Steve Gieseking.
856b87c2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more
No linked threadMar 27, 2007
CommitterBackportedFix seriously broken markup for libpq-envars cross-references.
b581b854
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadMar 26, 2007
CommitterAllow non-superuser database owners to create procedural languages. A DBA is allowed to create a language in his database if it's marked "tmpldbacreate" in pg_pltemplate. The factory default is that this is set for all standard trusted languages, but of course a superuser may adjust the settings. In service of this, add the long-foreseen owner column to pg_language; renaming, dropping, and altering owner of a PL now follow normal ownership rules instead of being superuser-only. Jeremy Drake, with some editorialization by Tom Lane.
55a7cf80
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 26, 2007
CommitterSeems some people have been forgetting to run autoheader.
7ee8fd91
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 26, 2007
CommitterAdd -lcrypto as one of the possible link dependencies of libkrb5. Per report from Jim Rosenberg. This possibly should get back-patched, but I'm a bit suspicious of it still because of the lack of prior reports.
66bbc2fd
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 26, 2007
CommitterRemove assertion that constraint_exclusion risks wrong answers if table constraints are changed; this is no longer true now that we have a plan invalidation mechanism.
287ed68d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 26, 2007
CommitterFix plancache's invalidation callback to do the right thing for a SI reset event, namely invalidate everything. This oversight probably explains the rare failures that some buildfarm machines have been showing for the plancache regression test.
dc1b8cea
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 26, 2007
CommitterMake _SPI_execute_plan pass the query source string down to ProcessUtility if possible. I had left this undone in the first pass at the API change for ProcessUtility, but forgot to revisit it after the plancache changes made it possible to do it.
1cc97d17
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 25, 2007
CommitterRemove the prohibition on executing cursor commands through SPI_execute. Vadim had included this restriction in the original design of the SPI code, but I'm darned if I can see a reason for it.
bf823652
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 25, 2007
CommitterClean up the representation of special snapshots by including a "method pointer" in every Snapshot struct. This allows removal of the case-by-case tests in HeapTupleSatisfiesVisibility, which should make it a bit faster (I didn't try any performance tests though). More importantly, we are no longer violating portable C practices by assuming that small integers are distinct from all pointer values, and HeapTupleSatisfiesDirty no longer has a non-reentrant API involving side-effects on a global variable.
e85a01df
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 25, 2007
CommitterBackportedAdjust DatumGetBool macro so that it isn't fooled by garbage in the Datum to the left of the actual bool value. While in most cases there won't be any, our support for old-style user-defined functions violates the C spec to the extent of calling functions that might return char or short through a function pointer declared to return "char *", which we then coerce to Datum. It is not surprising that the result might contain garbage high-order bits ... what is surprising is that we didn't see such cases long ago. Per report from Magnus.
23a41573
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+21 more
No linked threadMar 23, 2007
CommitterFix plancache so that any required replanning is done with the same search_path that was active when the plan was first made. To do this, improve namespace.c to support a stack of "override" search path settings (we must have a stack since nested replan events are entirely possible). This facility replaces the "special namespace" hack formerly used by CREATE SCHEMA, and should be able to support per-function search path settings as well.
547b6e53
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 23, 2007
CommitterArrange for PreventTransactionChain to reject commands submitted as part of a multi-statement simple-Query message. This bug goes all the way back, but unfortunately is not nearly so easy to fix in existing releases; it is only the recent ProcessUtility API change that makes it fixable in HEAD. Per report from William Garrison.
4f896dac
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 22, 2007
CommitterAllow DROP TABLESPACE to succeed (with a warning) if the pg_tblspc symlink doesn't exist. This allows DROP to be used to clean out the pg_tablespace catalog entry in a situation where a previous DROP attempt failed before committing but after having removed the directories and symlink.
a4127b71
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 22, 2007
CommitterFix some problems with selectivity estimation for partial indexes.
54d20024
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 21, 2007
CommitterFurther buildfarm experience shows that actually we can't run the plancache test in parallel with the rules test at all, because the former wants to create a couple of temp views, which can sometimes show up in the latter's output. Let's try it in the next parallel group instead.
e28e318c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 19, 2007
CommitterBackportedFix 8.2 breakage of domains over array types, and add a regression test case to cover it. Per report from Anton Pikhteryev.
9bc933b2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadMar 19, 2007
CommitterFix ecpg/preproc makefile for parallel builds: parser.o must depend on preproc.h, else make may try to build it before preproc.h is ready. Per failures seen here and in buildfarm.
584b6dc2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 18, 2007
CommitterBackportedSPI_cursor_open failed to enforce that only read-only queries could be executed in read_only mode. This could lead to various relatively-subtle failures, such as an allegedly stable function returning non-stable results. Bug goes all the way back to the introduction of read-only mode in 8.0. Per report from Gaetano Mendola.
cdf8b56d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadMar 17, 2007
CommitterOoops, got only one of the two ArrayExpr variants correct in first cut at exprTypmod support. Also, experimentation shows that we need to label the type of Const nodes that are numeric with a specific typmod.
e88a7ad7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 17, 2007
CommitterFix up the remaining places where the expression node structure would lose available information about the typmod of an expression; namely, Const, ArrayRef, ArrayExpr, and EXPR and ARRAY SubLinks. In the ArrayExpr and SubLink cases it wasn't really the data structure's fault, but exprTypmod() being lazy. This seems like a good idea in view of the expected increase in typmod usage from Teodor's work to allow user-defined types to have typmods. In particular this responds to the concerns we had about eliminating the special-purpose hack that exprTypmod() used to have for BPCHAR Consts. We can now tell whether or not such a Const has been cast to a specific length, and report or display properly if so.
0f4ff460
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 17, 2007
CommitterFix race condition in parallel regression tests. The new plancache test was expecting there to be no regular table named 'foo', but it turns out the rules test transiently creates one, so that plancache would sometimes fail. I couldn't reproduce that in quite a few tries here, but several buildfarm machines have shown the failure. Fix by renaming plancache's temp table to something nonconflicting.
c4fdfb8d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 16, 2007
CommitterMake use of plancache module for SPI plans. In particular, since plpgsql uses SPI plans, this finally fixes the ancient gotcha that you can't drop and recreate a temp table used by a plpgsql function.
95f6d2d2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 15, 2007
CommitterBackportedFix a longstanding bug in VACUUM FULL's handling of update chains. The code did not expect that a DEAD tuple could follow a RECENTLY_DEAD tuple in an update chain, but because the OldestXmin rule for determining deadness is a simplification of reality, it is possible for this situation to occur (implying that the RECENTLY_DEAD tuple is in fact dead to all observers, but this patch does not attempt to exploit that). The code would follow a chain forward all the way, but then stop before a DEAD tuple when backing up, meaning that not all of the chain got moved. This could lead to copying the chain multiple times (resulting in duplicate copies of the live tuple at its end), or leaving dangling index entries behind (which, aside from generating warnings from later vacuums, creates a risk of wrong query results or bogus duplicate-key errors once the heap slot the index entry points to is repopulated).
d3ff1801
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadMar 14, 2007
CommitterBackportedArrange to install a "posixrules" entry in our timezone database, so that POSIX-style timezone specs that don't exactly match any database entry will be treated as having correct USA DST rules. Also, document that this can be changed if you want to use some other DST rules with a POSIX zone spec.
0169c354
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadMar 14, 2007
CommitterFix broken markup, strange tab width.
68a6e5e8
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 14, 2007
CommitterRegression makefile now needs to make separate lists of what to clean for input/ and output/ directories, because with the addition of largeobject_1.source, they're not the same list. Apparently the current buildfarm process does not exercise whether 'make distclean' leaves a clean tree behind, else the farm would have been failing for awhile.
08ed6c3c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 13, 2007
CommitterFirst phase of plan-invalidation project: create a plan cache management module and teach PREPARE and protocol-level prepared statements to use it. In service of this, rearrange utility-statement processing so that parse analysis does not assume table schemas can't change before execution for utility statements (necessary because we don't attempt to re-acquire locks for utility statements when reusing a stored plan). This requires some refactoring of the ProcessUtility API, but it ends up cleaner anyway, for instance we can get rid of the QueryContext global.
b9527e98
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 13, 2007
CommitterBackportedFix vac_update_relstats to ensure it always sends a relcache inval message, even if none of the fields in the pg_class row change. This behavior is necessary to ensure other backends flush rd_targblock values that might point to truncated-away pages. We got this right pre-8.2 but it was broken by overoptimistic change to not write out the pg_class row if unchanged. Per report from Pavan Deolasee.
28253372
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadMar 08, 2007
CommitterBackportedFix oversight in original coding of inline_function(): since check_sql_fn_retval allows binary-compatibility cases, the expression extracted from an inline-able SQL function might have a type that is only binary-compatible with the declared function result type. To avoid possibly changing the semantics of the expression, we should insert a RelabelType node in such cases. This has only been shown to have bad consequences in recent 8.1 and up releases, but I suspect there may be failure cases in the older branches too, so patch it all the way back. Per bug #3116 from Greg Mullane.
cc0cac4a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+21 more
No linked threadMar 06, 2007
CommitterMake log_min_error_statement put LOG level at the same priority as log_min_messages does; and arrange to suppress the duplicative output that would otherwise result from log_statement and log_duration messages. Bruce Momjian and Tom Lane.
61c3e5b2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 02, 2007
CommitterFix broken markup, improve wording.
50acd427
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 02, 2007
CommitterSuppress useless searches for unused line pointers in PageAddItem. To do this, add a 16-bit "flags" field to page headers by stealing some bits from pd_tli. We use one flag bit as a hint to indicate whether there are any unused line pointers; the remaining 15 are available for future use.
fb276438
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadMar 02, 2007
CommitterBackportedFix miscalculation of stats collector's write delay, introduced in revision 1.117.
44f72c6e
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadMar 01, 2007
CommitterBackportedFix markQueryForLocking() to work correctly in the presence of nested views. It has been wrong for this case since it was first written for 7.1 :-( Per report from Pavel Hanák.
cba2d271
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadMar 01, 2007
CommitterFix up several contrib modules that were using varlena datatypes in not-so-obvious ways. I'm not totally sure that I caught everything, but at least now they pass their regression tests with VARSIZE/SET_VARSIZE defined to reverse byte order.
9f652d43
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 28, 2007
CommitterReplace direct assignments to VARATT_SIZEP(x) with SET_VARSIZE(x, len). Get rid of VARATT_SIZE and VARATT_DATA, which were simply redundant with VARSIZE and VARDATA, and as a consequence almost no code was using the longer names. Rename the length fields of struct varlena and various derived structures to catch anyplace that was accessing them directly; and clean up various places so caught. In itself this patch doesn't change any behavior at all, but it is necessary infrastructure if we hope to play any games with the representation of varlena headers. Greg Stark and Tom Lane
234a02b2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 27, 2007
CommitterGet rid of the separate EState for subplans, and just let them share the parent query's EState. Now that there's a single flat rangetable for both the main plan and subplans, there's no need anymore for a separate EState, and removing it allows cleaning up some crufty code in nodeSubplan.c and nodeSubqueryscan.c. Should be a tad faster too, although any difference will probably be hard to measure. This is the last bit of subsidiary mop-up work from changing to a flat rangetable.
c7ff7663
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 27, 2007
CommitterBackportedUpdate 7.x variant horology files to match the new US DST rules. It seems likely that anyone wanting to run the regression tests in the future will have up-to-date system timezone files, so this is more likely to work than the old contents.
8acd3cfb
REL7_4_STABLE7.4.17REL7_3_STABLE7.3.19
No linked threadFeb 25, 2007
CommitterPut back copyObject() call I removed in a fit of brain fade. This one is still needed despite cleanups in setrefs.c, because the point is to let the inserted Result node compute a different tlist than its input node does. Per example from Jeremy Drake.
4756ff3d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 25, 2007
CommitterNow that plans have flat rangetable lists, it's a lot easier to get EXPLAIN to drill down into subplan targetlists to print the referent expression for an OUTER or INNER var in an upper plan node. Hence, make it do that always, and banish the old hack of showing "?columnN?" when things got too complicated.
655aa5b3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 23, 2007
CommitterChange Agg and Group nodes so that Vars contained in their targetlists and quals have varno OUTER, rather than zero, to indicate a reference to an output of their lefttree subplan. This is consistent with the way that every other upper-level node type does it, and allows some simplifications in setrefs.c and EXPLAIN.
cc77005d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 22, 2007
CommitterFix bug I introduced in recent patch to make hash joins discard null tuples immediately: ExecHashGetHashValue failed to restore the caller's memory context before taking the failure exit.
3c5985b4
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 22, 2007
CommitterTurn the rangetable used by the executor into a flat list, and avoid storing useless substructure for its RangeTblEntry nodes. (I chose to keep using the same struct node type and just zero out the link fields for unneeded info, rather than making a separate ExecRangeTblEntry type --- it seemed too fragile to have two different rangetable representations.)
eab6b8b2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 22, 2007
CommitterAdjust user-facing documentation to explain why we don't check pgpass file permissions on Windows.
ecba519d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 20, 2007
CommitterRemove the Query structure from the executor's API. This allows us to stop storing mostly-redundant Query trees in prepared statements, portals, etc. To replace Query, a new node type called PlannedStmt is inserted by the planner at the top of a completed plan tree; this carries just the fields of Query that are still needed at runtime. The statement lists kept in portals etc. now consist of intermixed PlannedStmt and bare utility-statement nodes --- no Query. This incidentally allows us to remove some fields from Query and Plan nodes that shouldn't have been there in the first place.
9cbd0c15
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 20, 2007
CommitterGet rid of some old and crufty global variables in the planner. When this code was last gone over, there wasn't really any alternative to globals because we didn't have the PlannerInfo struct being passed all through the planner code. Now that we do, we can restructure things to avoid non-reentrancy. I'm fooling with this because otherwise I'd have had to add another global variable for the planned compact range table list.
7c5e5439
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 19, 2007
CommitterImprove plpgsql's error message when a datatype declaration is omitted. Per example from Jeff Ross.
90c301aa
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 19, 2007
CommitterPut function expressions and values lists into FunctionScan and ValuesScan plan nodes, so that the executor does not need to get these items from the range table at runtime. This will avoid needing to include these fields in the compact range table I'm expecting to make the executor use.
b8c32677
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 19, 2007
CommitterBackportedFix portal management code to support non-default command completion tags for portals using PORTAL_UTIL_SELECT strategy. This is currently significant only for FETCH queries, which are supposed to include a count in the tag. Seems it's been broken since 7.4, but nobody noticed before Knut Lehre.
f1f2b271
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+21 more
No linked threadFeb 18, 2007
CommitterAdd code so that when COPY_PARSE_PLAN_TREES is defined, the copy and equal functions are checked for raw parse trees as well as post-analysis trees. This was never very important before, but the upcoming plan cache control module will need to be able to do copyObject() on raw parse trees.
49451ae0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 17, 2007
CommitterTeach find_nonnullable_rels to handle OR cases: if every arm of an OR forces a particular relation nonnullable, then we can say that the OR does. This is worth a little extra trouble since it may allow reduction of outer joins to plain joins.
72a070a3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 16, 2007
CommitterFix new RI operator selection code to do the right thing when working with an opclass for a generic type such as ANYARRAY. The original coding failed to check that PK and FK columns were of the same array type. Per discussion with Tom Dunstan. Also, make the code a shade more readable by not trying to economize on variables.
9f28ac0d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 16, 2007
CommitterBackportedAdjust the definition of is_pushed_down so that it's always true for INNER JOIN quals, just like WHERE quals, even if they reference every one of the join's relations. Now that we can reorder outer and inner joins, it's possible for such a qual to end up being assigned to an outer join plan node, and we mustn't have it treated as a join qual rather than a filter qual for the node. (If it were, the join could produce null-extended rows that it shouldn't.) Per bug report from Pelle Johansson.
8249409b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadFeb 16, 2007
CommitterCode review for SSLKEY patch.
b6c9165e
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 16, 2007
CommitterFix markup, spelling, grammar, and explanations for SSLKEY patch.
5ce7599b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 16, 2007
CommitterBackportedFix another problem in 8.2 changes that allowed "one-time" qual conditions to be checked at plan levels below the top; namely, we have to allow for Result nodes inserted just above a nestloop inner indexscan. Should think about using the general Param mechanism to pass down outer-relation variables, but for the moment we need a back-patchable solution. Per report from Phil Frost.
7ea758b0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadFeb 16, 2007
CommitterBackportedRestructure code that is responsible for ensuring that clauseless joins are considered when it is necessary to do so because of a join-order restriction (that is, an outer-join or IN-subselect construct). The former coding was a bit ad-hoc and inconsistent, and it missed some cases, as exposed by Mario Weilguni's recent bug report. His specific problem was that an IN could be turned into a "clauseless" join due to constant-propagation removing the IN's joinclause, and if the IN's subselect involved more than one relation and there was more than one such IN linking to the same upper relation, then the only valid join orders involve "bushy" plans but we would fail to consider the specific paths needed to get there. (See the example case added to the join regression test.) On examining the code I wonder if there weren't some other problem cases too; in particular it seems that GEQO was defending against a different set of corner cases than the main planner was. There was also an efficiency problem, in that when we did realize we needed a clauseless join because of an IN, we'd consider clauseless joins against every other relation whether this was sensible or not. It seems a better design is to use the outer-join and in-clause lists as a backup heuristic, just as the rule of joining only where there are joinclauses is a heuristic: we'll join two relations if they have a usable joinclause *or* this might be necessary to satisfy an outer-join or IN-clause join order restriction. I refactored the code to have just one place considering this instead of three, and made sure that it covered all the cases that any of them had been considering.
6bef118b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more
No linked threadFeb 16, 2007
CommitterAdd ORDER BY to a query on information_schema.views, to avoid possible platform-specific result ordering. Per buildfarm results.
eecbb332
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 15, 2007
CommitterBackportedRepair oversight in 8.2 change that improved the handling of "pseudoconstant" WHERE clauses. createplan.c is now willing to stick a gating Result node almost anywhere in the plan tree, and in particular one can wind up directly underneath a MergeJoin node. This means it had better be willing to handle Mark/Restore. Fortunately, that's trivial in such cases, since we can just pass off the call to the input node (which the planner has previously ensured can handle Mark/Restore). Per report from Phil Frost.
bfe553fb
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadFeb 15, 2007
CommitterAdd some discussion of sort ordering to indices.sgml, which curiously had never touched the subject before.
5b68dfb0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 14, 2007
CommitterMinor editorialization on operator-family documentation: put some copied-and-pasted text in a more useful location.
5c63829f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 14, 2007
CommitterFix up foreign-key mechanism so that there is a sound semantic basis for the equality checks it applies, instead of a random dependence on whatever operators might be named "=". The equality operators will now be selected from the opfamily of the unique index that the FK constraint depends on to enforce uniqueness of the referenced columns; therefore they are certain to be consistent with that index's notion of equality. Among other things this should fix the problem noted awhile back that pg_dump may fail for foreign-key constraints on user-defined types when the required operators aren't in the search path. This also means that the former warning condition about "foreign key constraint will require costly sequential scans" is gone: if the comparison condition isn't indexable then we'll reject the constraint entirely. All per past discussions.
7bddca34
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 14, 2007
CommitterBackportedDisallow committing a prepared transaction unless we are in the same database it was executed in. Someday it might be nice to allow cross-DB commits, but work would be needed in NOTIFY and perhaps other places. Per Heikki.
caf2b64a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more
No linked threadFeb 13, 2007
CommitterImprove postmaster's behavior if an accept() call fails. Because the server socket is still read-ready, the code was a tight loop, wasting lots of CPU. We can't do anything to clear the failure, other than wait, but we should give other processes more chance to finish and release FDs; so insert a small sleep. Also, avoid bogus "close(-1)" in this case. Per report from Jim Nasby.
cf4cc784
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 13, 2007
CommitterBackportedRepair bug in 8.2's new logic for planning outer joins: we have to allow joins that overlap an outer join's min_righthand but aren't fully contained in it, to support joining within the RHS after having performed an outer join that can commute with this one. Aside from the direct fix in make_join_rel(), fix has_join_restriction() and GEQO's desirable_join() to consider this possibility. Per report from Ian Harding.
c1711764
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadFeb 13, 2007
CommitterAvoid infinite recursion when dumping new planner EquivalenceClass trees.
33c4a77f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 12, 2007
CommitterFix another erroneous =-for-:= substitution.
733abd29
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 11, 2007
CommitterImprove documentation for CREATE CONSTRAINT TRIGGER.
4d160018
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 10, 2007
CommitterPut back some not-so-unnecessary-as-all-that := usages. Per buildfarm.
1a1474b4
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 10, 2007
CommitterHm, seems my hack on rowtypes regression test has made its output row order platform-specific. Add an ORDER BY clause to stop buildfarm failures.
23b65b80
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 10, 2007
CommitterMinor tweak to make rowtypes regression test run faster. We don't currently have any better strategy for this query than re-running the sub-select over and over; it seems unlikely that doing so 10000 times is a more useful test than doing it a few dozen times.
6be40def
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 09, 2007
CommitterCall pgstat_drop_database during DROP DATABASE, so that any stats file entries for the victim database go away sooner rather than later. We already did the equivalent thing at the per-relation level, not sure why it's not been done for whole databases. With this change, pgstat_vacuum_tabstat should usually not find anything to do; though we still need it as a backstop in case DROPDB or TABPURGE messages get lost under load.
f4427117
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 09, 2007
CommitterCombine cmin and cmax fields of HeapTupleHeaders into a single field, by keeping private state in each backend that has inserted and deleted the same tuple during its current top-level transaction. This is sufficient since there is no need to be able to determine the cmin/cmax from any other transaction. This gets us back down to 23-byte headers, removing a penalty paid in 8.0 to support subtransactions. Patch by Heikki Linnakangas, with minor revisions by moi, following a design hashed out awhile back on the pghackers list.
c3983003
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 09, 2007
CommitterAdd missing #define for mingw, per Magnus.
4a30da1e
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 08, 2007
CommitterBackportedFix an ancient logic error in plpgsql's exec_stmt_block: it thought it could get away with not (re)initializing a local variable if the variable is marked "isconst" and not "isnull". Unfortunately it makes this decision after having already freed the old value, meaning that something like
fe796ea8
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadFeb 08, 2007
CommitterBackportedRearrange use of plpgsql_add_initdatums() so that only the parsing of a DECLARE section needs to know about it. Formerly, everyplace besides DECLARE that created variables needed to do "plpgsql_add_initdatums(NULL)" to prevent those variables from being sucked up as part of a subsequent DECLARE block. This is obviously error-prone, and in fact the SQLSTATE/SQLERRM patch had failed to do it for those two variables, leading to the bug recently exhibited by Asif Ali Rehman: a DECLARE within an exception handler tried to reinitialize SQLERRM.
7ad33ceb
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadFeb 08, 2007
CommitterAdd a function pg_stat_clear_snapshot() that discards any statistics snapshot already collected in the current transaction; this allows plpgsql functions to watch for stats updates even though they are confined to a single transaction. Use this instead of the previous kluge involving pg_stat_file() to wait for the stats collector to update in the stats regression test. Internally, decouple storage of stats snapshots from transaction boundaries; they'll now stick around until someone calls pgstat_clear_snapshot --- which xact.c still does at transaction end, to maintain the previous behavior. This makes the logic a lot cleaner, at the price of a couple dozen cycles per transaction exit.
aec4cf1c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 07, 2007
CommitterModify the stats regression test to delay until the stats file actually changes (with an upper limit of 30 seconds), and record the delay time in the postmaster log. This should give us some info about what's happening with the intermittent stats failures in buildfarm. After an idea of Andrew Dunstan's.
d9ce6887
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 07, 2007
CommitterRemove the xlog-centric "database system is ready" message and replace it with "database system is ready to accept connections", which is issued by the postmaster when it really is ready to accept connections. Per proposal from Markus Schiltknecht and subsequent discussion.
78d12161
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 07, 2007
CommitterFix PG_VERSION_NUM too.
18b0d7de
REL8_2_STABLE8.2.3
No linked threadFeb 07, 2007
CommitterFix wrong spacing (I think Bruce tried to hand-edit this instead of letting autoconf do it)
5921066d
REL8_1_STABLE8.1.8
No linked threadFeb 07, 2007
CommitterBackportedFix an error in the original coding of holdable cursors: PersistHoldablePortal thought that it didn't have to reposition the underlying tuplestore if the portal is atEnd. But this is not so, because tuplestores have separate read and write cursors ... and the read cursor hasn't moved from the start. This mistake explains bug #2970 from William Zhang.
5b706ba4
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+21 more
No linked threadFeb 06, 2007
CommitterBackportedRemove typmod checking from the recent security-related patches. It turns out that ExecEvalVar and friends don't necessarily have access to a tuple descriptor with correct typmod: it definitely can contain -1, and possibly might contain other values that are different from the Var's value. Arguably this should be cleaned up someday, but it's not a simple change, and in any case typmod discrepancies don't pose a security hazard. Per reports from numerous people :-(
a8c3f161
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadFeb 06, 2007
CommitterFix typo in comment.
28c3cd5c
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 06, 2007
CommitterRemove some dead code, per Heikki.
c76ed815
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 06, 2007
CommitterBackportedFix a performance regression in 8.2: optimization of MIN/MAX into indexscans had stopped working for tables buried inside views or sub-selects. This is because I had gotten rid of the simplify_jointree() preprocessing step, and optimize_minmax_aggregates() wasn't smart enough to deal with a non-canonical FromExpr. Per gripe from Bill Howe.
56e59edd
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadFeb 06, 2007
CommitterDocs updates for cross-type hashing.
91e18dbb
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 06, 2007
CommitterCome to think of it, we should check that commutator pairs have the same merges/hashes property settings.
8076c8c7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 06, 2007
CommitterBackportedNot only did we agree that this 'hint' doesn't belong here, but the markup's broken. So just remove it...
b259924e
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadFeb 06, 2007
CommitterAdd support for cross-type hashing in hashed subplans (hashed IN/NOT IN cases that aren't turned into true joins). Since this is the last missing bit of infrastructure, go ahead and fill out the hash integer_ops and float_ops opfamilies with cross-type operators. The operator family project is now DONE ... er, except for documentation ...
ab05eede
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 06, 2007
CommitterRename MaxTupleSize to MaxHeapTupleSize to clarify that it's not meant to describe the maximum size of index tuples (which is typically AM-dependent anyway); and consequently remove the bogus deduction for "special space" that was built into it.
23c4978e
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 05, 2007
CommitterBackportedDon't MAXALIGN in the checks to decide whether a tuple is over TOAST's threshold for tuple length. On 4-byte-MAXALIGN machines, the toast code creates tuples that have t_len exactly TOAST_TUPLE_THRESHOLD ... but this number is not itself maxaligned, so if heap_insert maxaligns t_len before comparing to TOAST_TUPLE_THRESHOLD, it'll uselessly recurse back to tuptoaster.c, wasting cycles. (It turns out that this does not happen on 8-byte-MAXALIGN machines, because for them the outer MAXALIGN in the TOAST_MAX_CHUNK_SIZE macro reduces TOAST_MAX_CHUNK_SIZE so that toast tuples will be less than TOAST_TUPLE_THRESHOLD in size. That MAXALIGN is really incorrect, but we can't remove it now, see below.) There isn't any particular value in maxaligning before comparing to the thresholds, so just don't do that, which saves a small number of cycles in itself.
a2e092e1
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadFeb 04, 2007
CommitterUse -Wl for linker switches on freebsd --- back-port of an 8.0 change. I think this will make buildfarm member herring go green in this branch.
f0083ccf
REL7_4_STABLE7.4.17
No linked threadFeb 03, 2007
CommitterStamp release 7.3.18.
af8a4243
REL7_3_STABLE7.3.18
No linked threadFeb 02, 2007
CommitterStamp release 7.4.16.
de59c01f
REL7_4_STABLE7.4.16
No linked threadFeb 02, 2007
CommitterStamp release 8.0.11.
d724689b
REL8_0_STABLE8.0.11
No linked threadFeb 02, 2007
CommitterStamp release 8.1.7.
924c1d4c
REL8_1_STABLE8.1.7
No linked threadFeb 02, 2007
CommitterStamp release 8.2.2.
d06a16c5
REL8_2_STABLE8.2.2
No linked threadFeb 02, 2007
CommitterBackportedUpdate release notes for security-related releases in all active branches.
bd01a4e3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadFeb 02, 2007
CommitterBackportedRepair failure to check that a table is still compatible with a previously made query plan. Use of ALTER COLUMN TYPE creates a hazard for cached query plans: they could contain Vars that claim a column has a different type than it now has. Fix this by checking during plan startup that Vars at relation scan level match the current relation tuple descriptor. Since at that point we already have at least AccessShareLock, we can be sure the column type will not change underneath us later in the query. However, since a backend's locks do not conflict against itself, there is still a hole for an attacker to exploit: he could try to execute ALTER COLUMN TYPE while a query is in progress in the current backend. Seal that hole by rejecting ALTER TABLE whenever the target relation is already open in the current backend.
5413eef8
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadFeb 02, 2007
CommitterBackportedRepair insufficiently careful type checking for SQL-language functions: we should check that the function code returns the claimed result datatype every time we parse the function for execution. Formerly, for simple scalar result types we assumed the creation-time check was sufficient, but this fails if the function selects from a table that's been redefined since then, and even more obviously fails if check_function_bodies had been OFF.
f8eb75b6
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadFeb 02, 2007
CommitterBackportedFix broken markup.
dc4c26c3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadFeb 01, 2007
CommitterTypo fix.
a9d5fb5a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 01, 2007
CommitterBackportedFix plpgsql so that when a local variable has no initial-value expression, an error will be thrown correctly if the variable is of a NOT NULL domain. Report and almost-correct fix from Sergiy Vyshnevetskiy (bug #2948).
6994d0b8
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadFeb 01, 2007
CommitterFix initdb to not generate misleading error messages when postgres.bki or other share-directory files are inaccessible for some reason other than not existing. Inspired by trouble report from Simon Kinsella.
068bf653
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 31, 2007
CommitterBackportedRepair oversights in the mechanism used to store compiled plpgsql functions. The original coding failed (tried to access deallocated memory) if there were two active call sites (fn_extra pointers) for the same function and the function definition was updated. Also, if an update of a recursive function was detected upon nested entry to the function, the existing compiled version was summarily deallocated, resulting in crash upon return to the outer instance. Problem observed while studying a bug report from Sergiy Vyshnevetskiy.
35b039a2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more
No linked threadJan 30, 2007
CommitterBackportedAdd SPI_push/SPI_pop calls so that datatype input and output functions called by plpgsql can themselves use SPI --- possibly indirectly, as in the case of domain_in() invoking plpgsql functions in a domain check constraint. Per bug #2945 from Sergiy Vyshnevetskiy.
33d78c9e
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+20 more
No linked threadJan 30, 2007
CommitterAdd support for cross-type hashing in hash index searches and hash joins. Hashing for aggregation purposes still needs work, so it's not time to mark any cross-type operators as hashable for general use, but these cases work if the operators are so marked by hand in the system catalogs.
a635c08f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 30, 2007
CommitterAdd comment noting that hashm_procid in a hash index's metapage isn't actually used for anything.
e8cd6f14
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 29, 2007
CommitterImprove hash join to discard input tuples immediately if they can't match because they contain a null join key (and the join operator is known strict). Improves performance significantly when the inner relation contains a lot of nulls, as per bug #2930.
b39e9150
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 28, 2007
CommitterRemove unnecessary checkpoint from PL regression tests. This was once handy to prevent core dump files from disappearing, but it's useless now because (a) we don't drop core in individual DB subdirectories anymore, and (b) CREATE DATABASE forces an internal checkpoint anyway.
28c480e9
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 28, 2007
CommitterRemove some unnecessary conversion work in build_regtype_array().
529a24a2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 28, 2007
CommitterBackportedRepair oversight in creation of "append relations": we should set up rel->tuples as well as rel->rows, since some estimation functions expect both to be valid in every baserel. Per report from Dave Dutcher.
2b8758a3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 28, 2007
CommitterMake some small improvements in the accuracy of plpgsql's error location reports; inspired by the misleading CONTEXT lines shown in recent bug report from Stefan Kaltenbrunner. Also, allow statement-type names shown in these messages to be translated.
5681cde7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 28, 2007
CommitterBackportedFix up plpgsql's "simple expression" evaluation mechanism so that it behaves safely in the presence of subtransactions. To ensure that any ExprContext shutdown callbacks are called at the right times, we have to have a separate EState for each level of subtransaction. Per "TupleDesc reference leak" bug report from Stefan Kaltenbrunner.
a8e0b660
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 28, 2007
CommitterDrat, can't fit an additional argument into log_error. Is it worth an sprintf pushup to be sure we can report something useful for out-of-range exitstatus?
76c7d2af
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 28, 2007
CommitterClean up broken usage of HAVE_DECL_SYS_SIGLIST and inconsistent/poorly formatted error messages.
a9fa5250
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 28, 2007
CommitterAdd a delay at the start of the stats test, to let any prior stats activity quiesce. Possibly this will fix the large increase in non-reproducible stats test failures we've noted since turning on stats_row_level by default.
9bf559de
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 28, 2007
CommitterBackportedDept of second thoughts: the IQ of estimate_array_length() needs to be kept on par with that of scalararraysel(), else estimates that should track might not. Hence teach it about binary-compatible cases, too.
a053437d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 28, 2007
CommitterBackportedFix scalararraysel() to cope with binary-compatible cases, such as text[] versus varchar[]. This oversight probably explains Ryan Holmes' recent complaint --- he was getting a generic selectivity estimate instead of anything intelligent.
af18f6ad
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 28, 2007
CommitterBackportedCorrect an old logic error in btree page splitting: when considering a split exactly at the point where we need to insert a new item, the calculation used the wrong size for the "high key" of the new left page. This could lead to choosing an unworkable split, resulting in "PANIC: failed to add item to the left sibling" (or "right sibling") failure. Although this bug has been there a long time, it's very difficult to trigger a failure before 8.2, since there was generally a lot of free space on both sides of a chosen split. In 8.2, where the user-selected fill factor determines how much free space the code tries to leave, an unworkable split is much more likely. Report by Joe Conway, diagnosis and fix by Heikki Linnakangas.
6cefacd7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadJan 27, 2007
CommitterBackportedBack-port changes of Jan 16 and 17 to "revoke" pending fsync requests during DROP TABLE and DROP DATABASE. Should prevent unexpected "permission denied" failures on Windows, and is cleaner on other platforms too since we no longer have to take it on faith that ENOENT is okay during an fsync attempt.
cb476c1e
REL8_2_STABLE8.2.2REL8_1_STABLE8.1.7
No linked threadJan 27, 2007
CommitterBackportedOn Windows, use pgwin32_waitforsinglesocket() instead of select() to wait for input in the stats collector. Our select() emulation is apparently buggy for UDP sockets :-(. This should resolve problems with stats collection (and hence autovacuum) failing under more than minimal load. Diagnosis and patch by Magnus Hagander.
4355d214
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 26, 2007
CommitterBackportedGet pg_utf_mblen(), pg_utf2wchar_with_len(), and utf2ucs() all on the same page about the maximum UTF8 sequence length we support (4 bytes since 8.1, 3 before that). pg_utf2wchar_with_len never got updated to support 4-byte characters at all, and in any case had a buffer-overrun risk in that it could produce multiple pg_wchars from what mblen claims to be just one UTF8 character. The only reason we don't have a major security hole is that most callers allocate worst-case output buffers; the sole exception in released versions appears to be pre-8.2 iwchareq() (ie, ILIKE), which can be crashed due to zeroing out its return address --- but AFAICS that can't be exploited for anything more than a crash, due to inability to control what gets written there. Per report from James Russell and Michael Fuhr.
0887fa11
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadJan 24, 2007
CommitterBackportedRelax an Assert() that has been found to be too strict in some situations involving unions of types having typmods. Variants of the failure are known to occur in 8.1 and up; not sure if it's possible in 8.0 and 7.4, but since the code exists that far back, I'll just patch 'em all. Per report from Brian Hurt.
07cf99ac
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+21 more
No linked threadJan 24, 2007
CommitterUpdate xindex.sgml to discuss operator families.
a56c5fb0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 23, 2007
CommitterUpdate pg_dump to support dumping operator families.
37995812
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 23, 2007
CommitterAdd CREATE/ALTER/DROP OPERATOR FAMILY commands, also COMMENT ON OPERATOR FAMILY; and add FAMILY option to CREATE OPERATOR CLASS to allow adding a class to a pre-existing family. Per previous discussion. Man, what a tedious lot of cutting and pasting ...
a33cf104
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 23, 2007
CommitterPut back planner's ability to cache the results of mergejoinscansel(), which I had removed in the first cut of the EquivalenceClass rewrite to simplify that patch a little. But it's still important --- in a four-way join problem mergejoinscansel() was eating about 40% of the planning time according to gprof. Also, improve the EquivalenceClass code to re-use join RestrictInfos rather than generating fresh ones for each join considered. This saves some memory space but more importantly improves the effectiveness of caching planning info in RestrictInfos.
4f06c688
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 22, 2007
CommitterAdjust pgbench so it won't spit up on non-select queries returning tuples, which is entirely possible with custom scripts (consider RETURNING, EXPLAIN, etc).
686f15e3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 22, 2007
CommitterAdd COST and ROWS options to CREATE/ALTER FUNCTION, plus underlying pg_proc columns procost and prorows, to allow simple user adjustment of the estimated cost of a function call, as well as control of the estimated number of rows returned by a set-returning function. We might eventually wish to extend this to allow function-specific estimation routines, but there seems to be consensus that we should try a simple constant estimate first. In particular this provides a relatively simple way to control the order in which different WHERE clauses are applied in a plan node, which is a Good Thing in view of the fact that the recent EquivalenceClass planner rewrite made that much less predictable than before.
5a7471c3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 22, 2007
CommitterRefactor some lsyscache routines to eliminate duplicate code and save a couple of syscache lookups in make_pathkey_from_sortinfo().
066926df
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 21, 2007
CommitterSimplify pg_am representation of ordering-capable access methods: provide just a boolean 'amcanorder', instead of fields that specify the sort operator strategy numbers. We have decided to require ordering-capable AMs to use btree-compatible strategy numbers, so the old fields are overkill (and indeed misleading about what's allowed).
fcf4b146
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 20, 2007
CommitterDon't use 'int' where you mean 'bool'.
67f06327
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 20, 2007
CommitterFix broken markup.
3f9b1b92
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 20, 2007
CommitterRefactor planner's pathkeys data structure to create a separate, explicit representation of equivalence classes of variables. This is an extensive rewrite, but it brings a number of benefits: * planner no longer fails in the presence of "incomplete" operator families that don't offer operators for every possible combination of datatypes. * avoid generating and then discarding redundant equality clauses. * remove bogus assumption that derived equalities always use operators named "=". * mergejoins can work with a variety of sort orders (e.g., descending) now, instead of tying each mergejoinable operator to exactly one sort order. * better recognition of redundant sort columns. * can make use of equalities appearing underneath an outer join.
f41803bb
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 20, 2007
CommitterAdd a note pointing out that is_pseudo_constant_clause() doesn't check for aggregates. This is OK for current uses but could burn somebody someday...
c81bfc24
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 17, 2007
CommitterExtend yesterday's patch so that the bgwriter is also told to forget pending fsyncs during DROP DATABASE. Obviously necessary in hindsight :-(
eddbf397
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 17, 2007
CommitterRevise bgwriter fsync-request mechanism to improve robustness when a table is deleted. A backend about to unlink a file now sends a "revoke fsync" request to the bgwriter to make it clean out pending fsync requests. There is still a race condition where the bgwriter may try to fsync after the unlink has happened, but we can resolve that by rechecking the fsync request queue to see if a revoke request arrived meanwhile. This eliminates the former kluge of "just assuming" that an ENOENT failure is okay, and lets us handle the fact that on Windows it might be EACCES too without introducing any questionable assumptions. After an idea of mine improved by Magnus.
6d660587
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 17, 2007
CommitterBackportedFix incorrect permissions check in information_schema.key_column_usage view: it was checking a pg_constraint OID instead of pg_class OID, resulting in "relation with OID nnnnn does not exist" failures for anyone who wasn't owner of the table being examined. Per bug #2848 from Laurence Rowe.
6959cb59
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 16, 2007
CommitterBackportedFix handling of CC (century) format spec in to_date/to_char. According to standard convention the 21st century runs from 2001-2100, not 2000-2099, so make it work like that. Per bug #2885 from Akio Iwaasa.
9a54b76b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 12, 2007
CommitterAdd some notes about the basic mathematical laws that the system presumes hold true for operators in a btree operator family. This is mostly to clarify my own thinking about what the planner can assume for optimization purposes. (blowing dust off an old abstract-algebra textbook...)
d8323541
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 12, 2007
CommitterBackportedFix a performance problem in databases with large numbers of tables (or other types of pg_class entry): the function pgstat_vacuum_tabstat, invoked during VACUUM startup, had runtime proportional to the number of stats table entries times the number of pg_class rows; in other words O(N^2) if the stats collector's information is reasonably complete. Replace list searching with a hash table to bring it back to O(N) behavior. Per report from kim at myemma.com.
97903c3d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more
No linked threadJan 11, 2007
CommitterTeach nodeMergejoin how to handle DESC and/or NULLS FIRST sort orders. So far only tested by hacking the planner ...
ad429fe3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 11, 2007
CommitterMake sure BYTE_ORDER gets defined in 64-bit builds on Solaris, per Stefan Kaltenbrunner.
c4e7e675
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 10, 2007
CommitterChange the planner-to-executor API so that the planner tells the executor which comparison operators to use for plan nodes involving tuple comparison (Agg, Group, Unique, SetOp). Formerly the executor looked up the default equality operator for the datatype, which was really pretty shaky, since it's possible that the data being fed to the node is sorted according to some nondefault operator class that could have an incompatible idea of equality. The planner knows what it has sorted by and therefore can provide the right equality operator to use. Also, this change moves a couple of catalog lookups out of the executor and into the planner, which should help startup time for pre-planned queries by some small amount. Modify the planner to remove some other cavalier assumptions about always being able to use the default operators. Also add "nulls first/last" info to the Plan node for a mergejoin --- neither the executor nor the planner can cope yet, but at least the API is in place.
a191a169
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 10, 2007
CommitterMarginal tweaks in the documentation for ORDER BY; in particular point out the common error that ORDER BY x, y DESC does not mean the same as ORDER BY x DESC, y DESC.
1e0bf904
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 09, 2007
CommitterAdd a citation to Seltzer and Yigit's Usenix '91 paper about hash table management. The paper clearly describes many of the ideas embodied in our current hashing code, but as far as I could find out there is not a direct code heritage. (Mike Olsen recalls discussion of this paper at Postgres meetings but believes it "informed the Postgres implementation probably just at the design level". Margo herself says she wasn't involved with Postgres' hash code.) Credit where credit is due 'n all that, even if fifteen years after the fact.
69db0091
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 09, 2007
CommitterFix vcbuild to allow building without OpenSSL and/or zlib. Magnus
352871c3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 09, 2007
Committervcbuild documentation from Magnus and Dave.
7d5d06f8
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 09, 2007
Committerpltcl regression test needs to actually create an opclass, not just one operator.
833f9cb7
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 09, 2007
CommitterSupport ORDER BY ... NULLS FIRST/LAST, and add ASC/DESC/NULLS FIRST/NULLS LAST per-column options for btree indexes. The planner's support for this is still pretty rudimentary; it does not yet know how to plan mergejoins with nondefault ordering options. The documentation is pretty rudimentary, too. I'll work on improving that stuff later.
44317582
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 09, 2007
CommitterBackportedTweak joinlist creation to avoid generating useless one-element subproblems when collapsing of JOIN trees is stopped by join_collapse_limit. For instance a list of 11 LEFT JOINs with limit 8 now produces something like ((1 2 3 4 5 6 7 8) 9 10 11 12) instead of (((1 2 3 4 5 6 7 8) (9)) 10 11 12) The latter structure is really only required for a FULL JOIN. Noted while studying an example from Shane Ambler.
19f9376b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 08, 2007
CommitterBackportedRemove cost_hashjoin's very ancient hack to discourage (once, entirely forbid) hash joins with the estimated-larger relation on the inside. There are several cases where doing that makes perfect sense, and in cases where it doesn't, the regular cost computation really ought to be able to figure that out. Make some marginal tweaks in said computation to try to get results approximating reality a bit better. Per an example from Shane Ambler.
9a9a143a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 08, 2007
CommitterFix oversight in handling of row-comparison index keys: if the row comparison doesn't exactly match the index, we may have to change our initial positioning strategy. For example, given an index on (f1,f2,f3) and a WHERE condition "ROW(f1,f3) > ROW(2,3)", the code extracted the initial-positioning condition "f1 > 2", which is wrong ... it has to be "f1 >= 2", else some rows matching the WHERE condition may fail to be returned.
2054724c
REL8_2_STABLE8.2.2
No linked threadJan 07, 2007
CommitterBackportedFix filtered_base_yylex() to save and restore base_yylval and base_yylloc properly when doing a lookahead. The lack of this was causing various interesting misbehaviors when one tries to use "with" as a plain identifier.
063560bb
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 06, 2007
CommitterBackportedLinks to GUC variables from HISTORY don't work in back branches...
c3013376
REL8_1_STABLE8.1.6REL8_0_STABLE8.0.10
No linked threadJan 06, 2007
CommitterPut back ERANGE test in dpow(). There are platforms that need this, like my HPPA ...
b2965b9f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 06, 2007
CommitterBackportedMinor copy-editing for release note updates.
07a5a4b2
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadJan 05, 2007
CommitterBackportedAdd missing reference to pg_shdescription. Greg Mullane
53c26d6f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 05, 2007
CommitterFix AddDefine to handle quotes properly. Magnus
e1aeba07
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 04, 2007
CommitterBackportedTweak pg_dumpall to add GRANT CONNECT ON DATABASE ... TO PUBLIC when dumping database privileges from a pre-8.2 server. This ensures that the reloaded database will maintain the same behavior it had in the previous installation, ie, everybody has connect privilege. Per gripe from L Bayuk.
2ee56b6a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 04, 2007
CommitterFix some small typos in comments. Greg Stark
7c8927bf
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 04, 2007
CommitterBackportedFix erroneous implementation of -s in postmaster.c (the switch doesn't take an optarg). Add some comments noting that code in three different files has to be kept in sync. Fix erroneous description of -S switch (it sets work_mem not silent_mode), and do some light copy-editing elsewhere in postgres-ref.
eeb21891
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadJan 04, 2007
CommitterBackportedFix regex_fixed_prefix() to cope reasonably well with regex patterns of the form '^(foo)$'. Before, these could never be optimized into indexscans. The recent changes to make psql and pg_dump generate such patterns (for \d commands and -t and related switches, respectively) therefore represented a big performance hit for people with large pg_class catalogs, as seen in recent gripe from Erik Jones. While at it, be more paranoid about case-sensitivity checking in multibyte encodings, and fix some other corner cases in which a regex might be interpreted too liberally.
d6061d2f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more
No linked threadJan 03, 2007
CommitterFix erroneous error tests in pow/exp.
812095d6
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 03, 2007
CommitterFix btree_gist for new larger money type.
0d5eb8f9
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 03, 2007
CommitterClean up smgr.c/md.c APIs as per discussion a couple months ago. Instead of having md.c return a success/failure boolean to smgr.c, which was just going to elog anyway, let md.c issue the elog messages itself. This allows better error reporting, particularly in cases such as "short read" or "short write" which Peter was complaining of. Also, remove the kluge of allowing mdread() to return zeroes from a read-beyond-EOF: this is now an error condition except when InRecovery or zero_damaged_pages = true. (Hash indexes used to require that behavior, but no more.) Also, enforce that mdwrite() is to be used for rewriting existing blocks while mdextend() is to be used for extending the relation EOF. This restriction lets us get rid of the old ad-hoc defense against creating huge files by an accidental reference to a bogus block number: we'll only create new segments in mdextend() not mdwrite() or mdread(). (Again, when InRecovery we allow it anyway, since we need to allow updates of blocks that were later truncated away.) Also, clean up the original makeshift patch for bug #2737: move the responsibility for padding relation segments to full length into md.c.
ef072219
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 03, 2007
CommitterAdd a regression test for ALTER SET TABLESPACE; this is a whole separate code path in tablecmds.c that wasn't exercised at all before.
09d09b98
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadJan 02, 2007