- Mar 22, 2007
-
-
Bruce Momjian authored
Nikolay Samokhvalov
-
- Mar 16, 2007
-
-
Tom Lane authored
uses SPI plans, this finally fixes the ancient gotcha that you can't drop and recreate a temp table used by a plpgsql function. Along the way, clean up SPI's API a little bit by declaring SPI plan pointers as "SPIPlanPtr" instead of "void *". This is cosmetic but helps to forestall simple programming mistakes. (I have changed some but not all of the callers to match; there are still some "void *"'s in contrib and the PL's. This is intentional so that we can see if anyone's compiler complains about it.)
-
- Mar 03, 2007
-
-
Neil Conway authored
fixup various places in the tree that were clearing a StringInfo by hand. Making this function a part of the API simplifies client code slightly, and avoids needlessly peeking inside the StringInfo interface.
-
- Mar 01, 2007
-
-
Peter Eisentraut authored
Pavel Stehule
-
- Feb 28, 2007
-
-
Tom Lane authored
Get rid of VARATT_SIZE and VARATT_DATA, which were simply redundant with VARSIZE and VARDATA, and as a consequence almost no code was using the longer names. Rename the length fields of struct varlena and various derived structures to catch anyplace that was accessing them directly; and clean up various places so caught. In itself this patch doesn't change any behavior at all, but it is necessary infrastructure if we hope to play any games with the representation of varlena headers. Greg Stark and Tom Lane
-
- Feb 16, 2007
-
-
Peter Eisentraut authored
require stdint.h and works for "busted" int64.
-
Peter Eisentraut authored
-
Peter Eisentraut authored
-
- Feb 13, 2007
-
-
Magnus Hagander authored
after variable declarations.
-
- Feb 11, 2007
-
-
Peter Eisentraut authored
to XML names, which will be required for supporting XML export.
-
- Feb 10, 2007
-
-
Peter Eisentraut authored
-
- Feb 03, 2007
-
-
Peter Eisentraut authored
observe the xmloption. Reorganize the representation of the XML option in the parse tree and the API to make it easier to manage and understand. Add regression tests for parsing back XML expressions.
-
- Jan 27, 2007
-
-
Peter Eisentraut authored
classified the conditions under which this is safe to do (see source code comment).
-
Peter Eisentraut authored
-
- Jan 25, 2007
-
-
Peter Eisentraut authored
- Add new SQL command SET XML OPTION (also available via regular GUC) to control the DOCUMENT vs. CONTENT option in implicit parsing and serialization operations. - Subtle corrections in the handling of the standalone property in xmlroot(). - Allow xmlroot() to work on content fragments. - Subtle corrections in the handling of the version property in xmlconcat(). - Code refactoring for producing XML declarations.
-
- Jan 24, 2007
-
-
Peter Eisentraut authored
libxml as the detail message. As per <http://archives.postgresql.org/pgsql-hackers/2006-12/msg01087.php>. For converting error codes to messages, we only need to cover those codes that we raise ourselves now.
-
- Jan 20, 2007
-
-
Peter Eisentraut authored
function xmlagg.
-
- Jan 19, 2007
-
-
Peter Eisentraut authored
with new GUC parameter "xmlbinary" that controls the output encoding, as per SQL/XML standard.
-
- Jan 18, 2007
-
-
Peter Eisentraut authored
declarations are ignored and removed, in binary mode they are honored as specified by the XML standard.
-
- Jan 14, 2007
-
-
Peter Eisentraut authored
-
- Jan 12, 2007
-
-
Peter Eisentraut authored
-
Peter Eisentraut authored
coercion to type xml was a mistake. Escape values so they are valid XML character data.
-
- Jan 10, 2007
-
-
Peter Eisentraut authored
our own printing dance. This does a better job of quoting and escaping the values.
-
- Jan 07, 2007
-
-
Peter Eisentraut authored
- correct error codes - do syntax checks in correct order - strip leading spaces of argument
-
Peter Eisentraut authored
hand-crafted parser for the XML declaration, because libxml doesn't seem to allow this.
-
- Jan 06, 2007
-
-
Peter Eisentraut authored
sets the items, and serializes the value back (rather than adding an arbitrary number of XML preambles as before). The libxml memory management via palloc had to be disabled because it crashes when libxml tries to access memory that was helpfully freed earlier by PostgreSQL. This needs further thought.
-
- Jan 05, 2007
-
-
Bruce Momjian authored
back-stamped for this.
-
- Dec 29, 2006
-
-
Tom Lane authored
-
Peter Eisentraut authored
-
- Dec 28, 2006
-
-
Peter Eisentraut authored
-
Peter Eisentraut authored
-
- Dec 24, 2006
-
-
Tom Lane authored
Use a TRY block instead of (inadequate) ad-hoc coding to ensure that libxml is cleaned up after a failure. Report the intended SQLCODE instead of defaulting to XX000. Avoid risking use of a dangling pointer by keeping the persistent error buffer in TopMemoryContext. Be less trusting that error messages don't contain %. This patch doesn't do anything about changing the way the messages are put together --- this is just about mechanism.
-
Tom Lane authored
bletcherous and unsafe manipulation of global encoding setting. Clean up libxml reporting mechanism a bit (it still looks like a dangling-pointer crash waiting to happen, though, not to mention being far less than sane from a localization standpoint).
-
Tom Lane authored
the XmlExpr code in various lists, use a representation that has some hope of reverse-listing correctly (though it's still a de-escaping function shy of correctness), generally try to make it look more like Postgres coding conventions.
-
- Dec 23, 2006
-
-
Tom Lane authored
-
- Dec 21, 2006
-
-
Peter Eisentraut authored
-