summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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
2009-01-16plpython_error.out is for Python 2.4, plpython_error_3.out is for Python 2.5,Peter Eisentraut
as it was previously.
2009-01-16Add vacuum_freeze_table_age GUC option, to control when VACUUM shouldHeikki Linnakangas
ignore the visibility map and scan the whole table, to advance relfrozenxid.
2009-01-16WordsmithingPeter Eisentraut
2009-01-15Remove period from primary error message.Peter Eisentraut
2009-01-15Fix URL generation in headline. Only tag lexeme will be replaced by space.Teodor Sigaev
Per http://archives.postgresql.org/pgsql-bugs/2008-12/msg00013.php
2009-01-15Fix generation too long headline with ShortWords.Teodor Sigaev
Per http://archives.postgresql.org/pgsql-hackers/2008-09/msg01088.php
2009-01-15Cleanup pass over PL/Python NLS. Add translation support to PLy_elog andPeter Eisentraut
PLy_exception_set, and clarify some error messages.
2009-01-15Remove unneeded GETTEXT_TRIGGERS.Peter Eisentraut
2009-01-15NLS cleanup in ecpglibPeter Eisentraut
Replace leftover instances of _() by ecpg_gettext(), the latter being the correct way to refer to the library's message catalog, instead of the one of the program using the library. Drop NLS support for ecpg_log(), which is a debugging instrument similar to elog() in the backend. We cannot support NLS in the ecpg compatlib, because that requires ecpg_gettext, which is in ecpglib, which is not a dependency of compatlib. It doesn't seem worthwhile to worry about this, since the only translatable string is "out of memory", and gettext probably won't be able to do much without memory either. Adjust messages to project style.
2009-01-15Build needed things in src/test/regress/ first. And some build rulesPeter Eisentraut
normalization.
2009-01-15Make .pot files depend on the makefiles, so that they are updated when thePeter Eisentraut
file or trigger function lists are changed.
2009-01-14Make 'find' syntax consistent; add .git exclusion to make_ctags.Bruce Momjian
2009-01-14Avoid version-control system directories when creating TAGS. BesidesPeter Eisentraut
being wasteful, this can collide with repostory metadata on case-insensitive file sytems.
2009-01-14Remove empty #ifdef block.Bruce Momjian
2009-01-14Make the columns is_insertable_into and is_updatable behave uniformlyPeter Eisentraut
correctly. They are supposed to examine which kinds of rules are present, which they did in some of the info schema views but not in others.
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.