Filter:

Commits on May 12, 2009

Commits5 commits of which 1 backported
0Author
5Committer
0Reviewer
0Reported by
0Co-author
CreditCommitBranchesThread(s)Committed
CommitterUpdate release notes for changes through 2009-05-11. Also some minor copy-editing and reordering of items.
db6e0b2d
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 12, 2009
CommitterBackportedFix intratransaction memory leaks in xml_recv, xmlconcat, xmlroot, and xml_parse, all arising from the same sloppy usage of parse_xml_decl. The original coding had that function returning its output string parameters in the libxml context, which is long-lived, and all but one of its callers neglected to free the strings afterwards. The easiest and most bulletproof fix is to return the strings in the local palloc context instead, since that's short-lived. This was only costing a dozen or two bytes per function call, but that adds up fast if the function is called repeatedly ...
546454f8
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+17 more
No linked threadMay 12, 2009
CommitterFix LOCK TABLE to eliminate the race condition that could make it give weird errors when tables are concurrently dropped. To do this we must take lock on each relation before we check its privileges. The old code was trying to do that the other way around, which is a bit pointless when there are lots of other commands that lock relations before checking privileges. I did keep it checking each relation's privilege before locking the next relation, which is a detail that ALTER TABLE isn't too picky about.
f23bdda3
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 12, 2009
CommitterModify find_inheritance_children() and find_all_inheritors() to add the ability to lock relations as they scan pg_inherits, and to ignore any relations that have disappeared by the time we get lock on them. This makes uses of these functions safe against concurrent DROP operations on child tables: we will effectively ignore any just-dropped child, rather than possibly throwing an error as in recent bug report from Thomas Johansson (and similar past complaints). The behavior should not change otherwise, since the code was acquiring those same locks anyway, just a little bit later.
d4a363cd
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 12, 2009
CommitterDo some minor code refactoring in preparation for changing the APIs of find_inheritance_children() and find_all_inheritors(). I got annoyed that these are buried inside the planner but mostly used elsewhere. So, create a new file catalog/pg_inherits.c and put them there, along with a couple of other functions that search pg_inherits.
0ada5591
master8.4beta2REL_19_STABLE8.4beta2REL_18_STABLE8.4beta2REL_17_STABLE8.4beta2REL_16_STABLE8.4beta2REL_15_STABLE8.4beta2REL_14_STABLE8.4beta2REL_13_STABLE8.4beta2+16 more
No linked threadMay 12, 2009