summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-04-07Add cygwin version check before using cygwin_conv_path(),Itagaki Takahiro
and use cygwin_conv_to_full_win32_path() in older versions.
2010-04-06Log the actual timezone name that we fail to look up the values for inMagnus Hagander
case the registry data doesn't follow the format we expect, to facilitate debugging.
2010-04-06Further message changes when recovery.conf parameters missing.Simon Riggs
2010-04-06Rename "Log-streaming replication parameters" header to "Standby serverHeikki Linnakangas
parameters" in recovery.conf, to match the grouping in the documentation. Fujii Masao
2010-04-06Change some debug ereports to elogs, as requested by translation team.Simon Riggs
2010-04-05Assorted tab-completion improvements in psql.Itagaki Takahiro
Add missing completions for: - ALTER SEQUENCE name OWNER TO - ALTER TYPE name RENAME TO - ALTER VIEW name ALTER COLUMN - ALTER VIEW name OWNER TO - ALTER VIEW name SET SCHEMA Fix wrong completions for: - ALTER FUNCTION/AGGREGATE name (arguments) ... "(arguments)" has been ignored. - ALTER ... SET SCHEMA "SCHEMA" has been considered as a variable name.
2010-04-05Exclude unwanted typedef symbols in pgindent, including FD_SET which is ↵Andrew Dunstan
found on some Windows platforms. Also, silence unnecessary messages and make awk happier about literal '*' on some platforms.
2010-04-05Use a new API rather than a deprecated one in in cygwin.Itagaki Takahiro
cygwin_conv_to_full_win32_path should be replaced with cygwin_conv_path.
2010-04-05Arrange to remove pg_default_acl entries completely if their ACL settingTom Lane
is changed to match the hard-wired default. This avoids accumulating useless catalog entries, and also provides a path for dropping the owning role without using DROP OWNED BY. Per yesterday's complaint from Jaime Casanova, the need to use DROP OWNED BY for that is less than obvious, so providing this alternative method might save some user frustration.
2010-04-05Fix updateAclDependencies() to not assume that ACL role dependencies can onlyTom Lane
be added during GRANT and can only be removed during REVOKE; and fix its callers to not lie to it about the existing set of dependencies when instantiating a formerly-default ACL. The previous coding accidentally failed to malfunction so long as default ACLs contain only references to the object's owning role, because that role is ignored by updateAclDependencies. However this is obviously pretty fragile, as well as being an undocumented assumption. The new coding is a few lines longer but IMO much clearer.
2010-04-05Improve phrasing of warning message for NOTIFY queue getting too full.Tom Lane
Per gripe from Peter.
2010-04-03\ddp should be recognized as such even if user appends S or + to it.Tom Lane
Those options do nothing right now, but might be wanted later, and in any case it's confusing for the command to be interpreted as \dd if anything is appended. Per Jaime Casanova.
2010-04-03Make ecpg in line with other compilers in that it deletes its output if ↵Michael Meskes
there was an error processing the input file. Work done by Zoltan.
2010-04-03Message quoting style tuningPeter Eisentraut
2010-04-02Check compulsory parameters in recovery.conf in standby_mode, per docs.Simon Riggs
2010-04-02Update a number of broken links in comments.Magnus Hagander
Josh Kupershmidt
2010-04-02Move system startup message prior to any calls out of data directory.Simon Riggs
This allows us to see what mode the server is in before it starts to perform actions that can block or hang. Otherwise server messages may not appear until after messages that say FATAL the database server is starting up.
2010-04-02FATAL errors are meant to stop ecpg immediately, e.g. because the syntax isMichael Meskes
corrupted. This error, however, does is not a compilation problem but a runtime one, so we can keep compiling but still have to declare ERROR.
2010-04-01Don't pass an invalid file handle to dup2(). That causes a crash onHeikki Linnakangas
Windows, thanks to a feature in CRT called Parameter Validation. Backpatch to 8.2, which is the oldest version supported on Windows. In 8.2 and 8.3 also backpatch the earlier change to use DEVNULL instead of NULL_DEV #define for a /dev/null-like device. NULL_DEV was hard-coded to "/dev/null" regardless of platform, which didn't work on Windows, while DEVNULL works on all platforms. Restarting syslogger didn't work on Windows on versions 8.3 and below because of that.
2010-04-01Use a file of patterns of filenames to exclude from pgindent runs, instead ↵Andrew Dunstan
if using multiple invocations of egrep. Add perl ppport.h to the current list.
2010-04-01Zoltan beautified his hidden-variable-patch for ecpg. This also makes sure ↵Michael Meskes
we get an error message instead of a warning if the variable have different types.
2010-04-01Applied Zoltan's patch to make ecpg spit out warnings if a local variable ↵Michael Meskes
hides a global one with the same name.
2010-04-01Refer to max_wal_senders in a more consistent fashion.Robert Haas
The error message now makes explicit reference to the GUC that must be changed to fix the problem, using wording suggested by Tom Lane. Along the way, rename the GUC from MaxWalSenders to max_wal_senders for consistency and grep-ability.
2010-03-31Change recovery.conf.sample to match postgresql.conf by showing onlyBruce Momjian
default values, with example comments.
2010-03-31Give a more precise error message if a variable is re-used as cursor name in ↵Michael Meskes
ecpg.
2010-03-30Fix "constraint_exclusion = partition" logic so that it will also attemptTom Lane
constraint exclusion on an inheritance set that is the target of an UPDATE or DELETE query. Per gripe from Marc Cousin. Back-patch to 8.4 where the feature was introduced.
2010-03-30Change the retry-loop in standby mode to also try restoring files fromHeikki Linnakangas
pg_xlog directory. This is essential for replaying WAL records that were streamed from the master, after a standby server restart. If a corrupt record is seen in a file restored from the archive or streamed from the master, log it as a WARNING and keep retrying. If the corruption is permanent, and not just a glitch in the whatever copies the files to the archive or a network error not caught by CRC checks in TCP for example, we will keep retrying and logging the WARNING indefinitely. But that's better than shutting down completely, the standby is still useful for running read-only queries. In PITR the recovery ends at such a corrupt record, which is a bit questionable, but that's the behavior we had in previous releases and we don't feel like chaning it now. It does make sense for tools like pg_standby.
2010-03-30Message tuningPeter Eisentraut
2010-03-30Properly initialize local varaible inBruce Momjian
btree_xlog_delete_get_latestRemovedXid(). This variable was only tested in assert builds.
2010-03-30Add comma missing from postgresql.conf comment.Bruce Momjian
2010-03-29Edit recovery.conf.sample so it matches docs. Change standby_modeSimon Riggs
example to 'on or 'off' rather than 'true' or 'false', as shown in docs. Add restartpoint_command. Add section header for recovery target parameters, matching docs.
2010-03-28Rework join-removal logic as per recent discussion. In particular thisTom Lane
fixes things so that it works for cases where nested removals are possible. The overhead of the optimization should be significantly less, as well.
2010-03-28Derive latestRemovedXid for btree deletes by reading heap pages. TheSimon Riggs
WAL record for btree delete contains a list of tids, even when backup blocks are present. We follow the tids to their heap tuples, taking care to follow LP_REDIRECT tuples. We ignore LP_DEAD tuples on the understanding that they will always have xmin/xmax earlier than any LP_NORMAL tuples referred to by killed index tuples. Iff all tuples are LP_DEAD we return InvalidTransactionId. The heap relfilenode is added to the WAL record, requiring API changes to pass down the heap Relation. XLOG_PAGE_MAGIC updated.
2010-03-26Flush CopyOutResponse when starting streaming in walsender, so that it'sHeikki Linnakangas
not delayed until the first WAL record is sent. Fujii Masao
2010-03-25Modify some new and pre-existing messages for translatability.Simon Riggs
2010-03-25Prevent ALTER USER f RESET ALL from removing the settings that were put thereAlvaro Herrera
by a superuser -- "ALTER USER f RESET setting" already disallows removing such a setting. Apply the same treatment to ALTER DATABASE d RESET ALL when run by a database owner that's not superuser.
2010-03-24Additional thoughts on WALSender cpu reduction. Use long typeSimon Riggs
and alter a comment to reduce confusion.
2010-03-24Change replication connection log format to allow for a databaseSimon Riggs
called replication. Add host and port details, following format of messages in BackendInitialize().
2010-03-24Reduce CPU utilisation of WALSender process. Process was using 10% CPUSimon Riggs
doing nothing, caused by naptime specified in milliseconds yet units of pg_usleep() parameter is microseconds. Correctly specifying units reduces call frequency by 1000. Reduction in CPU consumption verified.
2010-03-24Fix thinko in log message for "sameuser" ident map mismatch: the providedTom Lane
and authenticated usernames were swapped. Reported by Bryan Henderson in bug #5386. Also clean up poorly-maintained header comment for this function.
2010-03-24Now that we know last_statrequest > last_statwrite can be observed in theTom Lane
buildfarm, expend a little more effort on the log message for it.
2010-03-24Mark "installcheck-parallel", "world", "install-world" and ↵Andrew Dunstan
"installcheck-world" make targets as PHONY. Fujii Masao.
2010-03-24Update description of walrcv_receive() function to match reality.Heikki Linnakangas
2010-03-24Document in postgresql.conf that the max_standby_delay default is 30Bruce Momjian
'seconds'.
2010-03-23Remove useless double assignmentPeter Eisentraut
GCC 4.5 complained about it.
2010-03-22Fix regression test breakage from recent change in default name of ↵Tom Lane
exclusion-constraint index.
2010-03-22Shorten suffix of automatically created indexes to "_excl" when usingSimon Riggs
exclusion constraints, in line with string length of other pre-9.0 suffixes.
2010-03-22Fix an oversight in join-removal optimization: we have to check not only forTom Lane
plain Vars that are generated in the inner rel and used above the join, but also for PlaceHolderVars. Per report from Oleg K.
2010-03-22Fixed ECPG regression test to make sure it uses absolute paths for includeMichael Meskes
files instead of relative ones which break vpath builds.
2010-03-21Adding special command line option that is now needed for the one ecpg ↵Michael Meskes
regression test that was changed.