Commits

Show all
Author Commit Message Labels Comments Date
Andrew Dunstan
Add missing lib needed by MSVC build.
Branches
parallel_dump
Andrew Dunstan
Add new files missed in previous commit
Branches
parallel_dump
Andrew Dunstan
Latest patch applied, in part by hand. Builds and runs.
Branches
parallel_dump
Tom Lane
Fix oversight in new code for printing rangetable aliases. In commit 11e131854f8231a21613f834c40fe9d046926387, I missed the case of a CTE RTE that doesn't have a user-defined alias, but does have an alias assigned by set_rtable_names(). Per report from Peter Eisentraut. While at it, refactor slightly to reduce code duplication.
Bruce Momjian
In our source code, make a copy of getopt's 'optarg' string arguments, rather than just storing a pointer.
Tom Lane
Get rid of COERCE_DONTCARE. We don't need this hack any more.
Tom Lane
Fix unportable format string. Per compiler warning.
Tom Lane
Make equal() ignore CoercionForm fields for better planning with casts. This change ensures that the planner will see implicit and explicit casts as equivalent for all purposes, except in the minority of cases where there's actually a semantic difference (as reflected by having a 3-argument cast function). In particular, this fixes cases where the EquivalenceClass machinery failed to consider two references to a varchar column as equivalent if one was implicitly cast…
Andrew Dunstan
Unbreak MSVC builds after recent Makefile refactoring. Based on a suggestion by Peter Eisentraut.
Tom Lane
Fix cross-type case in partial row matching for hashed subplans. When hashing a subplan like "WHERE (a, b) NOT IN (SELECT x, y FROM ...)", findPartialMatch() attempted to match rows using the hashtable's internal equality operators, which of course are for x and y's datatypes. What we need to use are the potentially cross-type operators for a=x, b=y, etc. Failure to do that leads to wrong answers or even crashes. The scope for problems is limited to cases whe…
Heikki Linnakangas
Improve replication connection timeouts. Rename replication_timeout to wal_sender_timeout, and add a new setting called wal_receiver_timeout that does the same at the walreceiver side. There was previously no timeout in walreceiver, so if the network went down, for example, the walreceiver could take a long time to notice that the connection was lost. Now with the two settings, both sides of a replication connection will detect a broken …
Peter Eisentraut
Refactor flex and bison make rules Numerous flex and bison make rules have appeared in the source tree over time, and they are all virtually identical, so we can replace them by pattern rules with some variables for customization. Users of pgxs will also be able to benefit from this.
Peter Eisentraut
Remove _FORTIFY_SOURCE Apparently, on some glibc versions this causes warnings when optimization is not enabled. Altogether, there appear to be too many incompatibilities surrounding this.
Tom Lane
Remove configure-option-dependent test cases from dblink tests. The HINTs generated for these error cases vary across builds. We could try to work around that, but the test cases aren't really useful enough to justify taking any trouble. Per buildfarm.
Tom Lane
Update obsolete comment. We no longer use GetNewOidWithIndex on pg_largeobject; rather, pg_largeobject_metadata's regular OID column is considered the repository of OIDs for large objects. The special functionality is still needed for TOAST tables however.
Tom Lane
Create an improved FDW option validator function for contrib/dblink. dblink now has its own validator function dblink_fdw_validator(), which is better than the core function postgresql_fdw_validator() because it gets the list of legal options from libpq instead of having a hard-wired list. Make the dblink extension module provide a standard foreign data wrapper dblink_fdw that encapsulates use of this validator, and recommend use of that wrapper instead of making …
Tom Lane
Update obsolete text in fdwhandler.sgml. Etsuro Fujita, with some wording adjustment by me.
Bruce Momjian
In pg_upgrade, issue proper error message when we can't open PG_VERSION. Backpatch to 9.2.
Tom Lane
Set procost to 10 for each of the pg_foo_is_visible() functions. The idea here is to make sure the planner will evaluate these functions last not first among the filter conditions in psql pattern search and tab-completion queries. We've discussed this several times, and there was consensus to do it back in August, but we didn't want to do it just before a release. Now seems like a safer time. No catversion bump, since this catalog change doesn't create a bac…
Tom Lane
Fix PGXS support for building loadable modules on AIX. Building a shlib on AIX requires use of the mkldexport.sh script, but we failed to install that, preventing its use from non-source-tree contexts. Also, Makefile.aix had the wrong idea about where to find the installed copy of the postgres.imp symbol file used by AIX. Per report from John Pierce. Patch all the way back, since this has been broken since the beginning of PGXS.
Tom Lane
Remove unnecessary overhead in backend's large-object operations. Do read/write permissions checks at most once per large object descriptor, not once per lo_read or lo_write call as before. The repeated tests were quite useless in the read case since the snapshot-based tests were guaranteed to produce the same answer every time. In the write case, the extra tests could in principle detect revocation of write privileges after a series of writes has started --- …
Heikki Linnakangas
Fix silly bug in previous refactoring. I extracted the refactoring patch from a larger patch that contained other changes too, but missed one unintentional change and didn't test enough...
Heikki Linnakangas
Put the logic to wait for WAL in standby mode to a separate function. This is just refactoring with no user-visible effect, to make the code more readable.
Alvaro Herrera
restore permission bits
Alvaro Herrera
Rename USE_INLINE to PG_USE_INLINE The former name was too likely to conflict with symbols from external headers; and, as seen in recent buildfarm failures in member spoonbill, it has now happened at least in plpython.
Heikki Linnakangas
Remove stray newline in comment.
Simon Riggs
Use tablespace_option consistently on doc page Fujii Masao
Simon Riggs
Add microsecs/op display to pg_test_fsync utility e.g. fsync 2103.613 ops/sec ( 475 microsecs/op) Peter Geoghegan
Tom Lane
Fix lo_import and lo_export to return useful error messages more often. I found that these functions tend to return -1 while leaving an empty error message string in the PGconn, if they suffer some kind of I/O error on the file. The reason is that lo_close, which thinks it's executed a perfectly fine SQL command, clears the errorMessage. The minimum-change workaround is to reorder operations here so that we don't fill the errorMessage until after lo_close.
Tom Lane
Fix lo_export usage in example programs. lo_export returns -1, not zero, on failure.
  1. Prev
  2. Next