summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-01-14Make error messages match backend style.Peter Eisentraut
2009-01-14misc.o depends on pg_config_paths.h when --enable-nls is used.Peter Eisentraut
2009-01-14Remove broken Assertions that failed if a statement executed in PL/pgSQL isHeikki Linnakangas
rewritten into another kind of statement, for example if an INSERT is rewritten into an UPDATE. Back-patch to 8.3 and 8.2. For HEAD, Tom suggested inventing a new SPI_OK_REWRITTEN return code, but that's not a backportable solution. I'll do that as a separate patch, this patch will do as a stopgap measure for HEAD too in the meanwhile.
2009-01-13Remove useless (and insecure) temp file handling.Peter Eisentraut
2009-01-13Throw an error when using -C and -1 at the same time in pg_restore.Magnus Hagander
It's not possible to do CREATE DATABASE inside a transaction, so previously we just got a server error instead. Backpatch to 8.2, which is where the -1 feature appeared.
2009-01-13Remove special-handling of usernames with Kerberos authentication. We willMagnus Hagander
now always use the system username as the default, and not try to pick it up from the kerberos ticket. This fixes the spurious error messages that show up on kerberos-enabled builds when not actually using kerberos, and puts it in line with how other authentication methods work.
2009-01-12Simplify the writing of amoptions routines by introducing a convenienceAlvaro Herrera
fillRelOptions routine that stores the parsed values in the struct using a table-based approach. Per Tom suggestion. Also remove the "continue" in HANDLE_*_RELOPTION macros, which were useless and in spirit they were assuming too much of how the macros were going to be used. (Note that these macros are now unused, but the intention is to introduce some usage in a future autovacuum patch, which is why they weren't completely removed.) Also, do not call the string validation routine when not validating. It seems less error-prone this way, per commentary on the amoptions SGML docs.
2009-01-12Tweak order of operations in BitmapHeapNext() to avoid the case of prefetchingTom Lane
the same page we are nanoseconds away from reading for real. There should be something left to do on the current page before we consider issuing a prefetch.
2009-01-12Use qualified_name instead of relation_expr for commands that have noPeter Eisentraut
business with inheritance recursion: ALTER INDEX, ALTER SEQUENCE, ALTER TRIGGER, ALTER VIEW. They would just silently ignore the ONLY. ALTER TABLE has mixed behavior and cannot be dealt with this way because of the resulting shift/reduce conflicts.
2009-01-12Add ONLY support to LOCK and TRUNCATE. By default, these commands are nowPeter Eisentraut
recursive. => Note this incompatibility in the release notes.
2009-01-12Implement prefetching via posix_fadvise() for bitmap index scans. A newTom Lane
GUC variable effective_io_concurrency controls how many concurrent block prefetch requests will be issued. (The best way to handle this for plain index scans is still under debate, so that part is not applied yet --- tgl) Greg Stark
2009-01-11Re-enable the old code in xlog.c that tried to use posix_fadvise(), so thatTom Lane
we can get some buildfarm feedback about whether that function is still problematic. (Note that the planned async-preread patch will not really prove anything one way or the other in buildfarm testing, since it will be inactive with default GUC settings.)
2009-01-11Make tests pass with or without locale.Peter Eisentraut
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.