summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-02-02Provide for parallel restoration from a custom format archive. Each data andAndrew Dunstan
post-data step is run in a separate worker child (a thread on Windows, a child process elsewhere) up to the concurrent number specified by the new pg_restore command-line --multi-thread | -m switch. Andrew Dunstan, with some editing by Tom Lane.
2009-02-02Allow reloption names to have qualifiers, initially supporting a TOASTAlvaro Herrera
qualifier, and add support for this in pg_dump. This allows TOAST tables to have user-defined fillfactor, and will also enable us to move the autovacuum parameters to reloptions without taking away the possibility of setting values for TOAST tables.
2009-02-02When changing a regression test file one should also change the expected ↵Michael Meskes
output file.
2009-02-02Set memory segment to '0', just to be sure.Michael Meskes
2009-02-02Fixed auto allocation for binary data types.Michael Meskes
2009-02-02Fixed bug in %s handling.Michael Meskes
2009-01-30Fix unnest() to handle a toasted input array safely. Per report fromTom Lane
Alvaro.
2009-01-30Check that connection limit is within valid range. IOW, not < -1.Heikki Linnakangas
It's missing in older versions too, but it doesn't seem worth back-porting. All negative are just harmlessly treated as "no limit", and tightening the check might even brake an application that relies on it.
2009-01-30Make messages consistent with existing onesPeter Eisentraut
2009-01-30Whitespace fix in messagePeter Eisentraut
2009-01-29Update time zone data files to tzdata release 2009a: introduces Asia/KathmanduTom Lane
as the preferred spelling of that zone name, corrects historical DST information for Switzerland and Cuba.
2009-01-29Replace argument-checking Asserts with regular test-and-elog checks in allTom Lane
encoding conversion functions. These are not can't-happen cases because it's possible to create a conversion with the wrong conversion function for the specified encoding pair. That would lead to an Assert crash in an Assert-enabled build, or incorrect conversion otherwise, neither of which is desirable. This would be a DOS issue if production databases were customarily built with asserts enabled, but fortunately that's not so. Per an observation by Heikki. Back-patch to all supported branches.
2009-01-29Fix incorrect dereferencing of char* to array's index.Teodor Sigaev
Per Tommy Gildseth <tommy.gildseth@usit.uio.no> report
2009-01-29Message fixPeter Eisentraut
2009-01-28Change warning-silencing code not to cast the pointer type, insteadMagnus Hagander
casting the value of the variable later. Per comments from Tom.
2009-01-28Go over all OpenSSL return values and make sure we compare themMagnus Hagander
to the documented API value. The previous code got it right as it's implemented, but accepted too much/too little compared to the API documentation. Per comment from Zdenek Kotala.
2009-01-28Support running as a service on Windows 7, by not specifyingMagnus Hagander
the JOB_OBJECT_UILIMIT_HANDLES flag. Dave Page & Magnus Hagander
2009-01-27Silence compiler warning on win32.Magnus Hagander
ITAGAKI Takahiro
2009-01-27Silence compiler warnings in new win32 locale codeMagnus Hagander
when building on mingw. ITAGAKI Takahiro
2009-01-27Revert updatable viewsPeter Eisentraut
2009-01-26Allow extracting and parsing of reloptions from a bare pg_class tuple, andAlvaro Herrera
refactor the relcache code that used to do that. This allows other callers (particularly autovacuum) to do the same without necessarily having to open and lock a table.
2009-01-26Message format tuningPeter Eisentraut
2009-01-23Tweak the existing special case for AIX in pg_getaddrinfo_all() to handleTom Lane
yet another failure case in AIX's getaddrinfo(). Per report and patch by Andrew Chernow.
2009-01-23Message style reviewPeter Eisentraut
2009-01-23Put back fast-path for the case that there's no backup blocks inHeikki Linnakangas
RestoreBkpBlocks. Went missing in my recent refactoring patch, as pointed out by Simon's hot standby patch.
2009-01-22Recreate ecpg_config.h with a stamp file created by config.status, samePeter Eisentraut
way pg_config.h is handled. This avoids reruns of config.status on every build, if configure has been rerun.
2009-01-22Support column-level privileges, as required by SQL standard.Tom Lane
Stephen Frost, with help from KaiGai Kohei and others
2009-01-22Only skip pages marked as clean in the visibility map, if the last 32Heikki Linnakangas
pages were marked as clean as well. The idea is to avoid defeating OS readahead by skipping a page here and there, and also makes it less likely that we miss an opportunity to advance relfrozenxid, for the sake of only a few skipped pages.
2009-01-22Update comments to reflect that tgenabled is not a boolean anymore.Heikki Linnakangas
Jonah Harris, with minor tinkering by me.
2009-01-22Automatic view update rulesPeter Eisentraut
Bernd Helmle
2009-01-22Explicitly bind gettext to the correct encoding on Windows.Magnus Hagander
Original patch from Hiroshi Inoue.
2009-01-21Remove stray ' character at end of line.Magnus Hagander
For some reason it broke OpenBSD compile even when it's inside a #ifdef WIN32 block.....
2009-01-21Forgot to handle the new SPI_OK_REWRITTEN result code in a couple places.Heikki Linnakangas
2009-01-21Add new SPI_OK_REWRITTEN return code to SPI_execute and friends, for theHeikki Linnakangas
case that the command is rewritten into another type of command. The old behavior to return the command tag of the last executed command was pretty surprising. In PL/pgSQL, for example, it meant that if a command was rewritten to a utility statement, FOUND wasn't set at all.
2009-01-21Make win32 builds always do SetEnvironmentVariable() when doing putenv().Magnus Hagander
Also, if linked against other versions than the default MSVCRT library (for example the MSVC build which links against MSVCRT80), also update the cache in the default MSVCRT at the same time. This should fix the issues with setting LC_MESSAGES on the MSVC build. Original patch from Hiroshi Inoue and Hiroshi Saito, much rewritten by me.
2009-01-21Make some strings translatable again that were accidentally removed inMagnus Hagander
earlier patch to fix "printf-arguments".
2009-01-21Install .mo files for NLS as <program>-<version>.mo when building with MSVCMagnus Hagander
as well. Same change as made earlier for autoconf builds. Per Hiroshi Inoue.
2009-01-20Add a new option to RestoreBkpBlocks() to indicate if a cleanup lock shouldHeikki Linnakangas
be used instead of the normal exclusive lock, and make WAL redo functions responsible for calling RestoreBkpBlocks(). They know better what kind of a lock they need. At the moment, this just moves things around with no functional change, but makes the hot standby patch that's under review cleaner.
2009-01-20Do not msgmerge against /dev/null; merge against the pot file itselfPeter Eisentraut
instead.
2009-01-20Revise the permission checking on user mapping DDL commands.Peter Eisentraut
CREATE/ALTER/DROP USER MAPPING are now allowed either by the server owner or by a user with USAGE privileges for his own user name. This is more or less what the SQL standard wants anyway (plus "implementation-defined") Hide information_schema.user_mapping_options.option_value, unless the current user is the one associated with the user mapping, or is the server owner and the mapping is for PUBLIC, or is a superuser. This is to protect passwords. Also, fix a bug in information_schema._pg_foreign_servers, which hid servers using wrappers where the current user did not have privileges on the wrapper. The correct behavior is to hide servers where the current user has no privileges on the server.
2009-01-20Make psql \d and \dt consistent for system tables, i.e prevent \d fromBruce Momjian
showing system tables, make \dS pattern show system table details, and have \dtS show system and _user_ tables, to be consistent with other \d* commands.
2009-01-19Document RELKIND_SPECIAL reference in psql, from <= 8.1.X.Bruce Momjian
2009-01-19Fix accidental (I suppose) introduction of non-ASCII quote marks.Tom Lane
2009-01-19Use the new text domain names ("postgres-8.4" instead of "postgres")Magnus Hagander
Hiroshi Inoue
2009-01-19Avoid regression test cases that fail in locales that sort "v" and "w"Peter Eisentraut
equally (in glibc: et_EE, sv_SE, tk_TM). It turns out that this was already taken care of previously by select_1.out, which I had forgotten to update for an unrelated change. But might as well avoid the issue altogether.
2009-01-19Alter regression test cases that rely on the sort order of "aa". SomePeter Eisentraut
locales (da_DK, fo_FO, kl_GL, nb_NO, nn_NO in glibc) sort "aa" after "z".
2009-01-19Alter the regression test cases that rely on the sort order of "ch" betweenPeter Eisentraut
"cg" and "ci". This eliminates a test failure on the following glibc locales: br_FR, cs_CZ, cy_GB, es_EC, es_US, hsb_DE, ig_NG, ik_CA, sk_SK.
2009-01-19Message wordsmithingPeter Eisentraut
2009-01-18Fix a pg_dump output ordering problem introduced in 8.3 by the addition ofTom Lane
array types for composite types. Although pg_dump understood it wasn't supposed to dump these array types as separate objects, it must include them in the dependency ordering analysis, and it was improperly assigning them the same relatively-high sort priority as regular types. This resulted in effectively moving composite types and tables up to that same high priority, which broke any ordering requirements that weren't explicitly enforced by dependencies. In particular user-defined operator classes, which should come out before tables, failed to do so. Per report from Brendan Jurd. In passing, also fix an ill-considered decision to give text search objects the same sort priority as functions and operators --- the sort result looks a lot nicer if different object types are kept separate. The recent foreign-data patch had copied that decision, making the sort ordering even messier :-(
2009-01-16Manual attempt to update this file.Peter Eisentraut