summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-01-10Revise the TIDBitmap API to support multiple concurrent iterations over aTom Lane
bitmap. This is extracted from Greg Stark's posix_fadvise patch; it seems worth committing separately, since it's potentially useful independently of posix_fadvise.
2009-01-09Fix libpq so that it reports PGRES_EMPTY_QUERY not PGRES_COMMAND_OK when anTom Lane
empty query string is passed to PQexecParams and related functions. Its handling of the NoData response to Describe messages was subtly incorrect. Per my report of yesterday. Although I consider this a bug, it's a behavioral change that might affect applications, so not back-patched. In passing fix a second issue in the same code: it didn't react well to an out-of-memory failure while trying to make the PGresult object.
2009-01-09Arrange for function default arguments to be processed properly in expressionsTom Lane
that are set up for execution with ExecPrepareExpr rather than going through the full planner process. By introducing an explicit notion of "expression planning", this patch also lays a bit of groundwork for maybe someday allowing sub-selects in standalone expressions.
2009-01-09Remove fairly useless mixed-case identifier test that causes localePeter Eisentraut
dependencies.
2009-01-09Code review of strftime patch, per comments from Tom:Magnus Hagander
* Use correct buffer size MAX_L10N_DATA * Use strlcpy instead of StrNCpy
2009-01-09Fix strftime usage on Win32 when trying to fetch the locale-awareMagnus Hagander
parts of a time string so it properly handles different encodings. Original patch by Hiroshi Saito, heavily reworked by me and ITAGAKI Takahiro.
2009-01-09More portable use of "find".Peter Eisentraut
2009-01-09Rewrite update-po target, so that it works less like a shell script and morePeter Eisentraut
like a makefile with real dependencies. Instead of overwriting the old po file, write the new one to .po.new. This is less annoying and integrates better with the NLS web site. Also, we can now merge languages that don't have a po file yet, by merging against all other po files of that language, to pick up recurring translations automatically. This previously only worked when a po file already existed.
2009-01-09Make krb_realm and krb_server_hostname be pg_hba options only, and removeMagnus Hagander
their GUCs. In passing, noted that the pg_hba options for krb5 authentication weren't listed at all - so add this.
2009-01-08Fix memory leak for file name if expect file name contains a dot, perBruce Momjian
report from dvice_null@yahoo.com.
2009-01-08A couple further reloptions improvements, per KaiGai Kohei: add a validationAlvaro Herrera
function to the string type and add a couple of macros for string handling. In passing, fix an off-by-one bug of mine.
2009-01-08Defend against null input in analyze_requires_snapshot(), per reportTom Lane
from Rushabh Lathia.
2009-01-08Revert current_query() change to use debug_query_string again; add comment.Bruce Momjian
2009-01-07Add comment about why BETWEEN uses operator strings and not opclasses,Bruce Momjian
with URL pointing to email discussion.
2009-01-07Create a third option named "partition" for constraint_exclusion, and make itTom Lane
the default. This setting enables constraint exclusion checks only for appendrel members (ie, inheritance children and UNION ALL arms), which are the cases in which constraint exclusion is most likely to be useful. Avoiding the overhead for simple queries that are unlikely to benefit should bring the cost down to the point where this is a reasonable default setting. Per today's discussion.
2009-01-07Have current_query() use ActivePortal->sourceText rather thanBruce Momjian
debug_query_string; this allows current_query() to be more accurate; docs updated; per idea from Tom
2009-01-07Insert conditional SPI_push/SPI_pop calls into InputFunctionCall,Tom Lane
OutputFunctionCall, and friends. This allows SPI-using functions to invoke datatype I/O without concern for the possibility that a SPI-using function will be called (which could be either the I/O function itself, or a function used in a domain check constraint). It's a tad ugly, but not nearly as ugly as what'd be needed to make this work via retail insertion of push/pop operations in all the PLs. This reverts my patch of 2007-01-30 that inserted some retail SPI_push/pop calls into plpgsql; that approach only fixed plpgsql, and not any other PLs. But the other PLs have the issue too, as illustrated by a recent gripe from Christian Schröder. Back-patch to 8.2, which is as far back as this solution will work. It's also as far back as we need to worry about the domain-constraint case, since earlier versions did not attempt to check domain constraints within datatype input. I'm not aware of any old I/O functions that use SPI themselves, so this should be sufficient for a back-patch.
2009-01-07Add comment that it is difficult to access the more accurateBruce Momjian
'query_string' from current_query().
2009-01-07Update comment associated with 'debug_query_string'.Bruce Momjian
2009-01-07define HAVE_FSEEKO for MSVCAndrew Dunstan
2009-01-07Fix executor/spi.h to follow our usual conventions for include files, ie,Tom Lane
not include postgres.h nor anything else it doesn't directly need. Add #includes to calling files as needed to compensate. Per my proposal of yesterday. This should be noted as a source code change in the 8.4 release notes, since it's likely to require changes in add-on modules.
2009-01-07Add hba parameter include_realm to krb5, gss and sspi authentication, usedMagnus Hagander
to pass the full username@realm string to the authentication instead of just the username. This makes it possible to use pg_ident.conf to authenticate users from multiple realms as different database users.
2009-01-07Allow krb_realm (krb5, gssapi and sspi) and krb_server_hostname (krb5 only)Magnus Hagander
authentication options to be set in pg_hba.conf on a per-line basis, to override the defaults set in postgresql.conf.
2009-01-07Don't require pqGetHomeDirectory to succeed if the user has specifiedMagnus Hagander
hardcoded paths for SSL rootcert/crl/clientcert/key. As noted by Andrew Chernow
2009-01-07Make the log output of 'vxid' between csvlog and stderr/syslogBruce Momjian
consistent. Currently, in csvlog, vxid of an auxiliary process isn't displayed. On the other hand, in stderr/syslog, invalid vxid (-1/0) of that is displayed. Fujii Masao
2009-01-07Update MinGW so it handles fseeko() similar to Unix.Bruce Momjian
2009-01-07Removeduplicate \dd psql help mention.Bruce Momjian
2009-01-07Add spaces around psql \d* columns, per idea from Joshua Drake.Bruce Momjian
2009-01-06Clarify a confusing comment about MCVs vs histogram entries.Tom Lane
Per Nathan Boley.
2009-01-06Improve \z psql \? help display.Bruce Momjian
2009-01-06Add documentation for new \d*S* patch, and clean up some of the docs.Bruce Momjian
Fix \do and trigger display for the patch too.
2009-01-06This makes all the \dX commands (most importantly to most: \df) workBruce Momjian
like \dt does, in that it requires a \dXS to see system items. Greg Sabino Mullane
2009-01-06Make the MSVC build output "32-bit" at the end of the version string, theMagnus Hagander
same way the unix build now does.
2009-01-06Make pg_dump and pg_dumpall --clean options match the SGML docs, for ↵Bruce Momjian
consistency.
2009-01-06Update pg_restore --help text to match the SGML documentation.Bruce Momjian
2009-01-06Change a couple of ill-advised uses of INFO elog level to WARNINGs; inTom Lane
particular this allows EmitWarningsOnPlaceholders messages to show up in the postmaster log by default. Update elog.h comment to make it clearer what INFO is for, and fix one example in the SGML docs that was misusing it. Per my gripe of yesterday.
2009-01-06Revert the default toast compression strategy to the former behaviorTom Lane
where there's no limit on the size of datum we'll try to compress. Other 8.4 tweaks to the behavior remain in place. Per discussion.
2009-01-06Doesn't seem like a good idea to be doing AC_CHECK_SIZEOF(void *) so muchTom Lane
earlier than all the other sizeof checks, and it certainly fails to follow the order suggested at the file head. Rearrange.
2009-01-06Fix logic in lazy vacuum to decide if it's worth trying to truncate the heap.Heikki Linnakangas
If the table was smaller than REL_TRUNCATE_FRACTION (= 16) pages, we always tried to acquire AccessExclusiveLock on it even if there was no empty pages at the end. Report by Simon Riggs. Back-patch all the way to 7.4.
2009-01-06Fix string reloption handling, per KaiGai Kohei.Alvaro Herrera
2009-01-06Suppress compiler warning in a different way, per Alvaro.Bruce Momjian
2009-01-06Supress compiler warning.Bruce Momjian
2009-01-06Fix new timezone cross-compile rule to avoid a bug in gmake 3.78.1;Bruce Momjian
document change.
2009-01-06Add some comments about why function parameter default expressions areTom Lane
restricted.
2009-01-06Fix an oversight in the function-default-arguments patch: after adding someTom Lane
default expressions to a function call, eval_const_expressions must recurse on those expressions. Else they don't get simplified, and in particular we fail to insert additional default arguments if any functions needing defaults are in there. Per report from Rushabh Lathia.
2009-01-05Change the reloptions machinery to use a table-based parser, and provideAlvaro Herrera
a more complete framework for writing custom option processing routines by user-defined access methods. Catalog version bumped due to the general API changes, which are going to affect user-defined "amoptions" routines.
2009-01-05Add a --role option to pg_dump, pg_dumpall, and pg_restore. This allowsTom Lane
performing dumps and restores in accordance with a security policy that forbids logging in directly as superuser, but instead specifies that you should log into an admin account and then SET ROLE to the superuser. In passing, clean up some ugly and mostly-broken code for quoting shell arguments in pg_dumpall. Benedek László, with some help from Tom Lane
2009-01-05Quiet repeated "loaded library" messages from child backends that are justTom Lane
re-loading a library already loaded into the postmaster. ITAGAKI Takahiro
2009-01-05Fix define_custom_variable to preserve any sourcefile/sourceline informationTom Lane
present in the placeholder. Noted while testing pg_stat_statements.
2009-01-05When cross-compiling, allow and require an external zic program to be usedPeter Eisentraut
when --with-system-tzdata is not used. initial patch by Richard Evans