- 22 May, 2012 9 commits
-
-
Bruce Momjian authored
reindexed, not vacuumed (typo). Per report from Thomas REISS
-
Bruce Momjian authored
types, per Alexander Korotkov
-
Bruce Momjian authored
-
Robert Haas authored
When the column name is an unqualified name, rather than table.column, the error message complains about too many dotted names, which is wrong. Report by Peter Eisentraut based on examination of the sepgsql regression test output, but the problem also affects COMMENT. New wording as suggested by Tom Lane.
-
Robert Haas authored
Document some more things as incompatibilities, and improve wording of another item. Noah Misch
-
Robert Haas authored
Magnus Hagander, reviewed by Fujii Masao, with slight wording changes by me.
-
Robert Haas authored
In commit d526575f, we changed things so that buffer usage counts are incremented when the buffer is pinned, rather than when it is unpinned, but the README file didn't get the memo. Report by Amit Kapila.
-
Tom Lane authored
There is no reason to do this as early as possible in postmaster startup, and good reason not to do it until we have completely created the postmaster's lock file, namely that it might contribute to pg_ctl thinking that postmaster startup has timed out. (This would require a rather unusual amount of time to be spent scanning temp file directories, but we have at least one field report of it happening reproducibly.) Back-patch to 9.1. Before that, pg_ctl didn't wait for additional info to be added to the lock file, so it wasn't a problem. Note that this is not a complete fix to the slow-start issue in 9.1, because we still had identify_system_timezone being run during postmaster start in 9.1. But that's at least a reasonably well-defined delay, with an easy workaround if needed, whereas the temp-files scan is not so predictable and cannot be avoided.
-
Tom Lane authored
The accurate info about what's in a lock file has been in miscadmin.h for some time, so let's just make this comment point there instead of maintaining a duplicative copy.
-
- 21 May, 2012 4 commits
-
-
Peter Eisentraut authored
The list was neither logical nor numerical nor alphabetical. Let's go with alphabetical.
-
Peter Eisentraut authored
For the record, fe-print.c is also missing, but it's sort of deprecated, and the string internationalization there has some issues, and it doesn't seem worth fixing that. So let's leave that out.
-
Tom Lane authored
Josh Kupershmidt
-
Tom Lane authored
Per discussion, we should explain that we follow RFC 3339 and not really the letter of the ISO 8601 spec for timestamp output format. Mostly Brendan Jurd's wording, though I tweaked it to clarify that we do take 'T' on input. Minor additional copy-editing and markup-tweaking, too.
-
- 19 May, 2012 5 commits
-
-
Peter Eisentraut authored
Detectable by gcc -Wlogical-op. Add two regression test cases that would previously allow incorrect values to pass.
-
Peter Eisentraut authored
initdb: Add -T option oid2name: Put options in some non-random order pg_dump: Put --section option in the right place And some additional markup and terminology improvements.
-
Peter Eisentraut authored
-
Peter Eisentraut authored
-
Michael Meskes authored
-
- 18 May, 2012 2 commits
-
-
Peter Eisentraut authored
-
Heikki Linnakangas authored
When we create a temporary copy of the old node buffer, in stack, we mustn't leak that into any of the long-lived data structures. Before this patch, when we called gistPopItupFromNodeBuffer(), it got added to the array of "loaded buffers". After gistRelocateBuildBuffersOnSplit() exits, the pointer added to the loaded buffers array points to garbage. Often that goes unnotied, because when we go through the array of loaded buffers to unload them, buffers with a NULL pageBuffer are ignored, which can often happen by accident even if the pointer points to garbage. This patch fixes that by marking the temporary copy in stack explicitly as temporary, and refrain from adding buffers marked as temporary to the array of loaded buffers. While we're at it, initialize nodeBuffer->pageBlocknum to InvalidBlockNumber and improve comments a bit. This isn't strictly necessary, but makes debugging easier.
-
- 17 May, 2012 3 commits
-
-
Peter Eisentraut authored
The hint looked a bit confusing when there were no valid options to hint about.
-
Peter Eisentraut authored
-
Peter Eisentraut authored
-
- 16 May, 2012 3 commits
-
-
Peter Eisentraut authored
It was changed from unreserved to reserved as part of the COLLATION FOR syntax, but it turns out that type_func_name_keyword is sufficient.
-
Tom Lane authored
Per recent discussion, the error message for this was actually a trifle inaccurate, since it said "cannot be cast" which might be incorrect. Adjust that wording, and add a HINT suggesting that a USING clause might be needed.
-
Heikki Linnakangas authored
If the amount of freespace on page was less than the amount reserved by fillfactor, the calculation would underflow. This fixes bug #6643 reported by Tomonari Katsumata.
-
- 15 May, 2012 8 commits
-
-
Peter Eisentraut authored
See 6ef24487 for an explanation. This is the same for the new man pages.
-
Peter Eisentraut authored
pgindent and perltidy should clean up the rest.
-
Peter Eisentraut authored
-
Peter Eisentraut authored
-
Heikki Linnakangas authored
We were using memcpy() to copy to a possibly overlapping memory region, which is a no-no. Use memmove() instead.
-
Tom Lane authored
We have no need for a timeout here really, but some broken products from Redmond seem to lose FD_READ events occasionally, and waking up and retrying the recv() is the only known way to work around that. Perhaps somebody will be motivated to figure out a better answer here; but not I.
-
Tom Lane authored
The BSD-ish members of the buildfarm all seem to think removing this was a bad idea. It looks to me like it resulted in omitting the system header inclusion necessary to detect the fields of struct tm correctly.
-
- 14 May, 2012 6 commits
-
-
Tom Lane authored
Since we have chosen to report socket EOF and error conditions via the WL_SOCKET_READABLE flag bit, it's unsafe to wait only for WL_SOCKET_WRITEABLE; the caller would never be notified of the socket condition, and in some of these implementations WaitLatchOrSocket would busy-wait until something else happens. Add this restriction to the API specification, and add Asserts to check that callers don't try to do that. At some point we might want to consider adjusting the API to relax this restriction, but until we have an actual use case for waiting on a write-only socket, it seems premature to design a solution.
-
Tom Lane authored
Test results from buildfarm members mastodon/narwhal (Windows Server 2003) make it look like that platform just plain loses FD_READ events occasionally, and the only reason our previous coding seemed to work was that it timed out every couple of seconds and retried the whole operation. Try to verify this by reinserting a finite timeout into the pgstat loop. This isn't meant to be a permanent patch either, just to confirm or disprove a theory.
-
Tom Lane authored
This should get rid of the usage of pgwin32_waitforsinglesocket entirely, and perhaps thereby remove the race condition that's evidently still present on some versions of Windows. The previous arrangement was a bit unsafe anyway, since waiting at the recv() would not allow pgstat to notice postmaster death.
-
Heikki Linnakangas authored
The input should've been validated well before it hits the input function. Doing so again is a waste of cycles.
-
Heikki Linnakangas authored
When the "hot" members of PGPROC were split off to separate PGXACT structs, many PGPROC fields referred to in comments were moved to PGXACT, but the comments were neglected in the commit. Mostly this is just a search/replace of PGPROC with PGXACT, but the way the dummy PGPROC entries are created for prepared transactions changed more, making some of the comments totally bogus. Noah Misch
-