summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-10-23Translation updatesDennis Bjorklund
2004-10-23Translation updatesDennis Bjorklund
2004-10-23Avoid overflow in cost_sort when work_mem exceeds 1Gb.Tom Lane
2004-10-22Fix tsearch build problems.Tom Lane
Magnus Hagander
2004-10-22Don't use LC_MESSAGES value on WIN32, since it doesn't work.Tom Lane
Magnus Hagander
2004-10-22Add a GUC_SUPERUSER_ONLY flag to mark GUC variables that should not beTom Lane
examinable by non-superusers, and use it to protect the recently-added GUC variables for data directory and config files. For now I have only flagged those variables that could be used to deduce something about the server's filesystem layout, but possibly we should also mark vars related to logging settings and other admin-only information?
2004-10-22In ALTER COLUMN TYPE, strip any implicit coercion operations appearingTom Lane
at the top level of the column's old default expression before adding an implicit coercion to the new column type. This seems to satisfy the principle of least surprise, as per discussion of bug #1290.
2004-10-22Translation updatesPeter Eisentraut
2004-10-22Message stylingPeter Eisentraut
2004-10-22Translation updateDennis Bjorklund
2004-10-22New swedish translation of pg_configDennis Bjorklund
2004-10-22Translation updatesDennis Bjorklund
2004-10-22Translation updatesDennis Bjorklund
2004-10-22Translation updates.Dennis Bjorklund
2004-10-22Minor code cleanup: hdefault() only ever returned "true", so it may asNeil Conway
well be declared to return "void" to save callers the trouble of checking for errors.
2004-10-22Prevent pg_ctl from being run as root. Since it uses configuration filesTom Lane
owned by postgres, doing "pg_ctl start" as root could allow a privilege escalation attack, as pointed out by iDEFENSE. Of course the postmaster would fail, but we ought to fail a little sooner to protect sysadmins unfamiliar with Postgres. The chosen fix is to disable root use of pg_ctl in all cases, just to be confident there are no other holes.
2004-10-21Disallow referential integrity actions from being deferred; only theTom Lane
NO ACTION check is deferrable. This seems to be a closer approximation to what the SQL spec says than what we were doing before, and it prevents some anomalous behaviors that are possible now that triggers can fire during the execution of PL functions. Stephan Szabo.
2004-10-21Set the close-on-exec flag for libpq's socket to the backend, to avoidTom Lane
any possible problems from child programs executed by the client app. Per suggestion from Elliot Lee of Red Hat.
2004-10-21Standardize on using the Min, Max, and Abs macros that are in our c.h file,Tom Lane
getting rid of numerous ad-hoc versions that have popped up in various places. Shortens code and avoids conflict with Windows min() and max() macros.
2004-10-20Allow functions returning void or cstring to appear in FROM clause,Tom Lane
to make life cushy for the JDBC driver. Centralize the decision-making that affects this by inventing a get_type_func_class() function, rather than adding special cases in half a dozen places.
2004-10-20When using GCC, change the default CFLAGS to:Neil Conway
-O2 -Wall -Wmissing-prototypes -Wpointer-arith Check whether the version of GCC we are using supports any of: -Wdeclaration-after-statement -Wendif-labels -Wold-style-definition And add the supported flags to CFLAGS.
2004-10-19Add a HINT about the likely reason for 'invalid multibyte character for ↵Tom Lane
locale' failure.
2004-10-19New translationPeter Eisentraut
2004-10-19Organize the help output a little better. Improve clarity of some messages.Peter Eisentraut
2004-10-18Add some code to ensure that we don't lose communication sync due toTom Lane
an oversize message, per suggestion from Oliver Jowett. I'm a bit dubious that this is a real problem, since the client likely doesn't have any more space available than the server, but it's not hard to make it behave according to the protocol intention.
2004-10-18New translationPeter Eisentraut
2004-10-18Might want to initialize the gettext library, if we're going to do all thatPeter Eisentraut
translation work.
2004-10-18Translation updatePeter Eisentraut
2004-10-18Add PQprepare/PQsendPrepared functions to libpq to support preparingTom Lane
statements without necessarily specifying the datatypes of their parameters. Abhijit Menon-Sen with some help from Tom Lane.
2004-10-18Remove use of "miscadmin.h" in port C files and remove test for frontendBruce Momjian
in miscadmin.h.
2004-10-18New translationPeter Eisentraut
2004-10-18Translation updatesPeter Eisentraut
2004-10-18New translationPeter Eisentraut
2004-10-18The attached patch fixes psql's win32 frontend-only build, by usingBruce Momjian
pg_strcasecmp in variables.c, and #ifdef'ing out PostmasterPid in miscadmin.h. Dave Page
2004-10-18Synced parserMichael Meskes
2004-10-18Trivial fix: remove a pointless cast.Neil Conway
2004-10-18Tweak pg_dump to handle default tablespaces correctly --- same logicTom Lane
as the corrected pg_get_indexdef code.
2004-10-17Better document win32_open and its ability to allow concurrentBruce Momjian
unlink/rename().
2004-10-17Fix some typos.Bruce Momjian
2004-10-17Allow background writing to be shut down by setting limit values to zero.Tom Lane
This does not disable the bgwriter process: it still has to wake up often enough to collect fsync requests from backends in a timely fashion. But it responds to the recent gripe about not being able to prevent the disk from being spun up constantly.
2004-10-17pg_get_indexdef() didn't do quite the right thing with identifyingTom Lane
an index's tablespace.
2004-10-17New translationPeter Eisentraut
2004-10-17New translationPeter Eisentraut
2004-10-17Translation updatePeter Eisentraut
2004-10-17Translation updatesPeter Eisentraut
2004-10-17Adjust messagePeter Eisentraut
2004-10-17Give a more user-friendly error message in situation where CREATE DATABASETom Lane
specifies a new default tablespace and the template database already has some tables in that tablespace. There isn't any way to solve this fully without modifying the clone database's pg_class contents, so for now the best we can do is issue a better error message.
2004-10-17Make locale_messages_assign() really work on Windows; the prior hackTom Lane
only covered the case of assigning "", and failed to recognize that actually setlocale(LC_MESSAGES,...) does not work at all on this platform. Magnus Hagander, some code prettification by Tom Lane.
2004-10-16Remove dllist.c from libpq. It's overkill for what libpq needs; we canTom Lane
just stick a list-link into struct PGnotify instead. Result is a smaller faster and more robust library (mainly because we reduce the number of malloc's and free's involved in notify processing), plus less pollution of application link-symbol namespace.
2004-10-16Give a more user-friendly error message in case where a table is createdTom Lane
in a schema whose default tablespace has been dropped.