Filter:

Commits in week 3 (Jan 14 - Jan 20, 2008)

Commits17 commits of which 2 backported
0Author
17Committer
0Reviewer
0Reported by
0Co-author
CreditCommitBranchesThread(s)Committed
CommitterFix psql \h output for case of no parameters (ie, list all the known commands) to format properly for the actually needed column width, instead of having a hard-wired assumption about the longest command name length. Also make it respond to the current screen width. In passing, const-ify the constant table.
f7108ce0
master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more
No linked threadJan 20, 2008
CommitterMake pg_regress clean out the testtablespace directory only on Windows. On other platforms it's better to let the Makefile handle it, but we want the regression tests to be invokable without make on Windows. A batch file would be a better solution, but no time for that before 8.3. Per my discovery that this breaks testing under SELinux, and subsequent discussion.
f10589e5
master8.3.0REL_19_STABLE8.3.0REL_18_STABLE8.3.0REL_17_STABLE8.3.0REL_16_STABLE8.3.0REL_15_STABLE8.3.0REL_14_STABLE8.3.0REL_13_STABLE8.3.0+17 more
No linked threadJan 19, 2008
CommitterInsert into getCopyDataMessage() the same logic that already existed in the main code path for enlarging libpq's input buffer in one swoop when needing to read a long data message. Without this, the code will double the buffer size, read more data, notice it still hasn't got the whole message, and repeat till it finally has a large enough buffer. Which wastes a lot of data-moving effort and also memory (since malloc probably can't do anything very useful with the freed-up smaller buffers). Not sure why this wasn't there already; certainly the COPY data path is a place where we're quite likely to see long data messages. I'm not backpatching though, since this is just a marginal performance issue rather than a real bug.
70066eb1
master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more
No linked threadJan 17, 2008
CommitterBackportedFix subselect.c to avoid assuming that a SubLink's testexpr references each subquery output column exactly once left-to-right. Although this is the case in the original parser output, it might not be so after rewriting and constant-folding, as illustrated by bug #3882 from Jan Mate. Instead scan the subquery's target list to obtain needed per-column information; this is duplicative of what the parser did, but only a couple dozen lines need be copied, and we can clean up a couple of notational uglinesses. Bug was introduced in 8.2 as part of revision of SubLink representation.
a44174cf
master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+18 more
No linked threadJan 17, 2008
CommitterFix ALTER INDEX RENAME so that if the index belongs to a unique or primary key constraint, the constraint is renamed as well. This avoids inconsistent situations that could confuse pg_dump (not to mention humans). We might at some point provide ALTER TABLE RENAME CONSTRAINT as a more general solution, but there seems no reason not to allow doing it this way too. Per bug #3854 and related discussions.
0df7717f
master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more
No linked threadJan 17, 2008
CommitterRemove inappropriate cd commands, per David Wheeler. Also make the PATH responsive to the installation prefix, which was the apparent intent of the previous edit, but not well executed.
97e3a6e9
master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more
No linked threadJan 16, 2008
CommitterBe less wishy-washy in the documentation and comments about whether a ParameterStatus message can be sent during COPY OUT: it's definitely possible, since COPY from a SELECT subquery can trigger any user-defined function.
0153c4c4
master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more
No linked threadJan 15, 2008
CommitterPrevent CLUSTER from decreasing a relation's relfrozenxid. Bug introduced in rewrite to make CLUSTER MVCC-safe.
14e2a260
master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more
No linked threadJan 15, 2008
CommitterRevise memory management for libxml calls. Instead of keeping libxml's data in whichever context happens to be current during a call of an xml.c function, use a dedicated context that will not go away until we explicitly delete it (which we do at transaction end or subtransaction abort). This makes recovery after an error much simpler --- we don't have to individually delete the data structures created by libxml. Also, we need to initialize and cleanup libxml only once per transaction (if there's no error) instead of once per function call, so it should be a bit faster. We'll need to keep an eye out for intra-transaction memory leaks, though. Alvaro and Tom.
ac12412e
master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more
No linked threadJan 15, 2008
CommitterTweak new error message to conform to style guidelines.
deb7deda
master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more
No linked threadJan 15, 2008
CommitterSomebody forgot to add this ERRCODE everywhere it should go ...
abab776b
master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more
No linked threadJan 15, 2008
CommitterPrevent pg_dump from dumping the comment (if any) on the 'public' schema. This is to avoid uselessly requiring superuser permissions to restore the dump without errors. Pretty grotty, but no better alternative seems available, at least not in the near term.
ea00ab8d
master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more
No linked threadJan 14, 2008
CommitterAvoid cluttering the postmaster log with bogus complaints during transaction abort, per my note from a couple days ago.
98c0ebca
master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more
No linked threadJan 14, 2008
CommitterBackportedFix an ancient oversight in libpq's handling of V3-protocol COPY OUT mode: we need to be able to swallow NOTICE messages, and potentially also ParameterStatus messages (although the latter would be a bit weird), without exiting COPY OUT state. Fix it, and adjust the protocol documentation to emphasize the need for this. Per off-list report from Alexander Galler.
5c767142
master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+21 more
No linked threadJan 14, 2008
CommitterFix pgstat_heap() to not be broken by syncscans starting from a block higher than zero. Same problem as just detected in CREATE INDEX CONCURRENTLY.
b775d93a
master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more
No linked threadJan 14, 2008
CommitterUse an indexscan not a heapscan to search pg_index in get_pkey_attnames. Noted while looking for heapscans that might need to start from block zero.
66661858
master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more
No linked threadJan 14, 2008
CommitterFix CREATE INDEX CONCURRENTLY so that it won't use synchronized scan for its second pass over the table. It has to start at block zero, else the "merge join" logic for detecting which TIDs are already in the index doesn't work. Hence, extend heapam.c's API so that callers can enable or disable syncscan. (I put in an option to disable buffer access strategy, too, just in case somebody needs it.) Per report from Hannes Dorbath.
d3b1b1f9
master8.3rc2REL_19_STABLE8.3rc2REL_18_STABLE8.3rc2REL_17_STABLE8.3rc2REL_16_STABLE8.3rc2REL_15_STABLE8.3rc2REL_14_STABLE8.3rc2REL_13_STABLE8.3rc2+17 more
No linked threadJan 14, 2008