| CommitterBackported | Reducing the assumed alignment of struct varlena means that the compiler is also licensed to put a local variable declared that way at an unaligned address. Which will not work if the variable is then manipulated with SET_VARSIZE or other macros that assume alignment. So the previous patch is not an unalloyed good, but on balance I think it's still a win, since we have very few places that do that sort of thing. Fix the one place in tuptoaster.c that does it. Per buildfarm results from gypsy_moth (I'm a bit surprised that only one machine showed a failure). c67f6f2f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Feb 29, 2008 |
| CommitterBackported | If RelationBuildDesc() fails to open a critical system index, PANIC with a relevant error message instead of just dumping core. Odd that nobody reported this before Darren Reed. 1743778d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Feb 27, 2008 |
| CommitterBackported | Fix encode(...bytea..., 'escape') so that it converts all high-bit-set byte values into \nnn octal escape sequences. When the database encoding is multibyte this is *necessary* to avoid generating invalidly encoded text. Even in a single-byte encoding, the old behavior seems very hazardous --- consider for example what happens if the text is transferred to another database with a different encoding. Decoding would then yield some other bytea value than what was encoded, which is surely undesirable. Per gripe from Hernan Gonzalez. fd15dba5 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Feb 26, 2008 |
| Committer | Reject year zero during datetime input, except when it's a 2-digit year (then it means 2000 AD). Formerly we silently interpreted this as 1 BC, which at best is unwarranted familiarity with the implementation. It's barely possible that some app somewhere expects the old behavior, though, so we won't back-patch this into existing release branches. bc93919b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 25, 2008 |
| CommitterBackported | Fix datetime input to behave correctly for Feb 29 in years BC. 05506fc4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Feb 25, 2008 |
| CommitterBackported | Use our own getopt() and getopt_long() on Solaris, because that platform's versions don't handle long options the way we want. Per Zdenek Kotala. ad20c990 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Feb 24, 2008 |
| CommitterBackported | Avoid trying to print a NULL char pointer in --describe-config. On some platforms this works, but on some it crashes. Zdenek Kotala 2e0e5631 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+21 more | No linked thread | Feb 23, 2008 |
| CommitterBackported | Change the declaration of struct varlena so that the length word is represented as "char ...[4]" not "int32". Since the length word is never supposed to be accessed via this struct member anyway, this won't break any existing code that is following the rules. The advantage is that C compilers will no longer assume that a pointer to struct varlena is word-aligned, which prevents incorrect optimizations in TOAST-pointer access and perhaps other places. gcc doesn't seem to do this (at least not at -O2), but the problem is demonstrable on some other compilers. 9713c063 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Feb 23, 2008 |
| Committer | Rename miscadmin.h's PG_VERSIONSTR macro to PG_BACKEND_VERSIONSTR to make it a bit clearer what it is, and get rid of duplicate definitions in initdb and pg_ctl. 870993e8 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 20, 2008 |
| Committer | Make pg_regress -V consistent with the corresponding code in other programs: use puts with a compile-time-constant string. 8dd6c4b4 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 20, 2008 |
| CommitterBackported | Fix mistakes in pg_ctl's code for "start -w" that tries to cope with non-default settings for the postmaster's port number. The code to parse command line options and postgresql.conf entries wasn't quite right about whitespace or quotes, and it was coded in a not-very-readable way too. Per bug #3969 from Itagaki Takahiro, though this is more extensive than his proposed patch (which fixed only the whitespace problem). This code has been broken since it was put in in 8.0, so patch all the way back. 7454515e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+20 more | No linked thread | Feb 20, 2008 |
| CommitterBackported | Put a CHECK_FOR_INTERRUPTS call into the loops that try to find a unique new OID or new relfilenode. If the existing OIDs are sufficiently densely populated, this could take a long time (perhaps even be an infinite loop), so it seems wise to allow the system to respond to a cancel interrupt here. Per a gripe from Jacky Leng. 5ce6829b | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+19 more | No linked thread | Feb 20, 2008 |
| CommitterBackported | Remove unnecessary opening of other relation in RI_FKey_keyequal_upd_pk and RI_FKey_keyequal_upd_fk, as well as no-longer-needed calls of ri_BuildQueryKeyFull. Aside from saving a few cycles, this avoids needless deadlock risks when an update is not changing the columns that participate in an RI constraint. Per a gripe from Alexey Nalbat. cf59277a | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+17 more | No linked thread | Feb 18, 2008 |
| Committer | Add back #include <time.h> in a couple of files that seem to need it on Linux. 8b63aa1f | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 17, 2008 |
| Committer | Replace time_t with pg_time_t (same values, but always int64) in on-disk data structures and backend internal APIs. This solves problems we've seen recently with inconsistent layout of pg_control between machines that have 32-bit time_t and those that have already migrated to 64-bit time_t. Also, we can get out from under the problem that Windows' Unix-API emulation is not consistent about the width of time_t. cd004067 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 17, 2008 |
| Committer | Update docs to reflect the fact that we can now deal with DST rules outside the 32-bit-time_t range. Also, refer to Olson's tz database as the 'zoneinfo' database, a name that upstream sometimes uses, not 'zic database' which they never use. 2874d38d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 16, 2008 |
| Committer | Update timezone code to track the upstream changes since 2003. In particular this adds support for 64-bit tzdata files, which is needed to support DST calculations beyond 2038. Add a regression test case to give some minimal confidence that that really works. 0171e72d | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 16, 2008 |
| Committer | Allow AS to be omitted when specifying an output column name in SELECT (or RETURNING), but only when the output name is not any SQL keyword. This seems as close as we can get to the standard's syntax without a great deal of thrashing. Original patch by Hiroshi Saito, amended by me. e67867b2 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 15, 2008 |
| Committer | Remove ancient restriction that LIMIT/OFFSET can't contain a sub-select. This was probably protecting some implementation limitation when it was put in, but as far as I can tell the planner and executor have no such assumption anymore; the case seems to work fine. Per a gripe from Grzegorz Jaskiewicz. cc80f0a3 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 15, 2008 |
| Committer | Sync our regex code with upstream changes since last time we did this, which was Tcl 8.4.8. The main changes are to remove the never-fully-implemented code for multi-character collating elements, and to const-ify some stuff a bit more fully. In combination with the recent security patch, this commit brings us into line with Tcl 8.5.0. df1e965e | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 14, 2008 |
| Committer | Stamp HEAD as 8.4devel. cf9e1561 | master8.4beta1REL_19_STABLE8.4beta1REL_18_STABLE8.4beta1REL_17_STABLE8.4beta1REL_16_STABLE8.4beta1REL_15_STABLE8.4beta1REL_14_STABLE8.4beta1REL_13_STABLE8.4beta1+16 more | No linked thread | Feb 13, 2008 |
| Committer | Fix SPI_cursor_open() and SPI_is_cursor_plan() to push the SPI stack before doing anything interesting, such as calling RevalidateCachedPlan(). The necessity of this is demonstrated by an example from Willem Buitendyk: during a replan, the planner might try to evaluate SPI-using functions, and so we'd better be in a clean SPI context. 745e6eda | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 12, 2008 |
| CommitterBackported | Repair VACUUM FULL bug introduced by HOT patch: the original way of calculating a page's initial free space was fine, and should not have been "improved" by letting PageGetHeapFreeSpace do it. VACUUM FULL is going to reclaim LP_DEAD line pointers later, so there is no need for a guard against the page being too full of line pointers, and having one risks rejecting pages that are perfectly good move destinations. c931c071 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+21 more | No linked thread | Feb 11, 2008 |
| Committer | Fix PageGetExactFreeSpace() so that it actually behaves sensibly if pd_lower > pd_upper, rather than merely claiming to. This would only matter if the page header were corrupt, which shouldn't occur, but ... 082aca9e | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 10, 2008 |
| Committer | Some small editorialization on the protocol documentation for GSSAPI/SSPI authentication. 0028b22d | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 08, 2008 |
| Committer | Since GSSAPI and SSPI authentication don't work in protocol version 2, issue a helpful error message instead of sending unparsable garbage. (It is clearly a design error that this doesn't work, but fixing it is not worth the trouble at this point.) Per discussion. 81e77085 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 08, 2008 |
| Committer | Avoid misbehavior in foreign key checks when casting to a datatype for which the parser supplies a default typmod that can result in data loss (ie, truncation). Currently that appears to be only CHARACTER and BIT. We can avoid the problem by specifying the type's internal name instead of using SQL-spec syntax. Since the queries generated here are only used internally, there's no need to worry about portability. This problem is new in 8.3; before we just let the parser do whatever it wanted to resolve the operator, but 8.3 is trying to be sure that the semantics of FK checks are consistent. Per report from Harald Fuchs. 9b43c245 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 07, 2008 |
| CommitterBackported | Some variants of ALTER OWNER tried to make the "object" field of the statement be a list of bare C strings, rather than String nodes, which is what they need to be for copyfuncs/equalfuncs to work. Fortunately these node types never go out to disk (if they did, we'd likely have noticed the problem sooner), so we can just fix it without creating a need for initdb. This bug has been there since 8.0, but 8.3 exposes it in a more common code path (Parse messages) than prior releases did. Per bug #3940 from Vladimir Kokovic. 1ab19a36 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+20 more | No linked thread | Feb 07, 2008 |
| Committer | Add missing copyfuncs/equalfuncs support for AlterTSDictionaryStmt and AlterTSConfigurationStmt. All utility statement node types are expected to be supported here, though they do not have to have outfuncs/readfuncs support. Found by running regression tests with COPY_PARSE_PLAN_TREES enabled. 49a73012 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 07, 2008 |
| Committer | Fix silly mistake in expand_indexqual_rowcompare --- in converting a forboth() into an iteration over three parallel lists, I had accidentally put the lnext steps outside the loop. Sigh. Per bug #3938. 09bb6f6e | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 07, 2008 |
| Committer | Fix CREATE TABLE ... LIKE ... INCLUDING INDEXES to not cause unwanted tablespace permissions failures when copying an index that is in the database's default tablespace. A side-effect of the change is that explicitly specifying the default tablespace no longer triggers a permissions check; this is not how it was done in pre-8.3 releases but is argued to be more consistent. Per bug #3921 from Andrew Gilligan. (Note: I argued in the subsequent discussion that maybe LIKE shouldn't copy index tablespaces at all, but since no one indicated agreement with that idea, I've refrained from doing it.) b7fe5f70 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 07, 2008 |
| Committer | Fix mistaken duplicate reference to max_fsm_pages, per bug #3926. Also make links clickable. 701cd5af | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 03, 2008 |
| Committer | Minor wordsmithing in release notes' description of asynchronous commit. 09bcb248 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 02, 2008 |
| Committer | Move example of turning off synchronous_commit to a more logical place, to wit in the description of that variable rather than some other one. 19c40492 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+17 more | No linked thread | Feb 02, 2008 |
| CommitterBackported | Fix WaitOnLock() to ensure that the process's "waiting" flag is reset after erroring out of a wait. We can use a PG_TRY block for this, but add a comment explaining why it'd be a bad idea to use it for any other state cleanup. 6f906905 | master8.3.1REL_19_STABLE8.3.1REL_18_STABLE8.3.1REL_17_STABLE8.3.1REL_16_STABLE8.3.1REL_15_STABLE8.3.1REL_14_STABLE8.3.1REL_13_STABLE8.3.1+18 more | No linked thread | Feb 02, 2008 |