CVS log for pgsql/contrib/xml2/xpath.c

[BACK] Up to [PostgreSQL CVS Repository] / pgsql / contrib / xml2

Request diff between arbitrary revisions - Display revisions graphically


Keyword substitution: kv
Default branch: MAIN


Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Aug 13 18:36:23 2010 UTC (15 years, 2 months ago) by tgl
Branches: MAIN
CVS tags: REL9_1_ALPHA1, HEAD
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +9 -2 lines
Add xml_is_well_formed, xml_is_well_formed_document, xml_is_well_formed_content
functions to the core XML code.  Per discussion, the former depends on
XMLOPTION while the others do not.  These supersede a version previously
offered by contrib/xml2.

Mike Fowler, reviewed by Pavel Stehule

Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Jul 6 19:18:55 2010 UTC (15 years, 4 months ago) by momjian
Branches: MAIN
CVS tags: REL9_0_STABLE, REL9_0_RC1, REL9_0_BETA4, REL9_0_BETA3, REL9_0_0
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3 lines
pgindent run for 9.0, second run

Revision 1.6.4.4: download - view: text, markup, annotated - select for diffs
Wed Mar 3 19:10:52 2010 UTC (15 years, 8 months ago) by tgl
Branches: REL8_0_STABLE
CVS tags: REL8_0_25, REL8_0_24
Diff to: previous 1.6.4.3: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.4.3: +12 -1 lines
Make contrib/xml2 use core xml.c's error handler, when available (that is,
in versions >= 8.3).  The core code is more robust and efficient than what
was there before, and this also reduces risks involved in swapping different
libxml error handler settings.

Before 8.3, there is still some risk of problems if add-on modules such as
Perl invoke libxml without setting their own error handler.  Given the lack
of reports I'm not sure there's a risk in practice, so I didn't take the
step of actually duplicating the core code into older contrib/xml2 branches.
Instead I just tweaked the existing code to ensure it didn't leave a dangling
pointer to short-lived memory when throwing an error.

Revision 1.8.2.5: download - view: text, markup, annotated - select for diffs
Wed Mar 3 19:10:45 2010 UTC (15 years, 8 months ago) by tgl
Branches: REL8_1_STABLE
CVS tags: REL8_1_21, REL8_1_20
Diff to: previous 1.8.2.4: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.2.4: +12 -1 lines
Make contrib/xml2 use core xml.c's error handler, when available (that is,
in versions >= 8.3).  The core code is more robust and efficient than what
was there before, and this also reduces risks involved in swapping different
libxml error handler settings.

Before 8.3, there is still some risk of problems if add-on modules such as
Perl invoke libxml without setting their own error handler.  Given the lack
of reports I'm not sure there's a risk in practice, so I didn't take the
step of actually duplicating the core code into older contrib/xml2 branches.
Instead I just tweaked the existing code to ensure it didn't leave a dangling
pointer to short-lived memory when throwing an error.

Revision 1.14.2.5: download - view: text, markup, annotated - select for diffs
Wed Mar 3 19:10:40 2010 UTC (15 years, 8 months ago) by tgl
Branches: REL8_2_STABLE
CVS tags: REL8_2_17, REL8_2_16
Diff to: previous 1.14.2.4: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.4: +12 -1 lines
Make contrib/xml2 use core xml.c's error handler, when available (that is,
in versions >= 8.3).  The core code is more robust and efficient than what
was there before, and this also reduces risks involved in swapping different
libxml error handler settings.

Before 8.3, there is still some risk of problems if add-on modules such as
Perl invoke libxml without setting their own error handler.  Given the lack
of reports I'm not sure there's a risk in practice, so I didn't take the
step of actually duplicating the core code into older contrib/xml2 branches.
Instead I just tweaked the existing code to ensure it didn't leave a dangling
pointer to short-lived memory when throwing an error.

Revision 1.16.2.5: download - view: text, markup, annotated - select for diffs
Wed Mar 3 19:10:35 2010 UTC (15 years, 8 months ago) by tgl
Branches: REL8_3_STABLE
CVS tags: REL8_3_11, REL8_3_10
Diff to: previous 1.16.2.4: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.2.4: +10 -72 lines
Make contrib/xml2 use core xml.c's error handler, when available (that is,
in versions >= 8.3).  The core code is more robust and efficient than what
was there before, and this also reduces risks involved in swapping different
libxml error handler settings.

Before 8.3, there is still some risk of problems if add-on modules such as
Perl invoke libxml without setting their own error handler.  Given the lack
of reports I'm not sure there's a risk in practice, so I didn't take the
step of actually duplicating the core code into older contrib/xml2 branches.
Instead I just tweaked the existing code to ensure it didn't leave a dangling
pointer to short-lived memory when throwing an error.

Revision 1.23.2.4: download - view: text, markup, annotated - select for diffs
Wed Mar 3 19:10:29 2010 UTC (15 years, 8 months ago) by tgl
Branches: REL8_4_STABLE
CVS tags: REL8_4_4, REL8_4_3
Diff to: previous 1.23.2.3: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.2.3: +11 -73 lines
Make contrib/xml2 use core xml.c's error handler, when available (that is,
in versions >= 8.3).  The core code is more robust and efficient than what
was there before, and this also reduces risks involved in swapping different
libxml error handler settings.

Before 8.3, there is still some risk of problems if add-on modules such as
Perl invoke libxml without setting their own error handler.  Given the lack
of reports I'm not sure there's a risk in practice, so I didn't take the
step of actually duplicating the core code into older contrib/xml2 branches.
Instead I just tweaked the existing code to ensure it didn't leave a dangling
pointer to short-lived memory when throwing an error.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Mar 3 19:10:22 2010 UTC (15 years, 8 months ago) by tgl
Branches: MAIN
CVS tags: REL9_0_BETA2, REL9_0_BETA1, REL9_0_ALPHA5_BRANCH, REL9_0_ALPHA5
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +11 -73 lines
Make contrib/xml2 use core xml.c's error handler, when available (that is,
in versions >= 8.3).  The core code is more robust and efficient than what
was there before, and this also reduces risks involved in swapping different
libxml error handler settings.

Before 8.3, there is still some risk of problems if add-on modules such as
Perl invoke libxml without setting their own error handler.  Given the lack
of reports I'm not sure there's a risk in practice, so I didn't take the
step of actually duplicating the core code into older contrib/xml2 branches.
Instead I just tweaked the existing code to ensure it didn't leave a dangling
pointer to short-lived memory when throwing an error.

Revision 1.6.4.3: download - view: text, markup, annotated - select for diffs
Mon Mar 1 05:17:08 2010 UTC (15 years, 8 months ago) by tgl
Branches: REL8_0_STABLE
Diff to: previous 1.6.4.2: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.4.2: +4 -29 lines
Remove xmlCleanupParser calls from contrib/xml2.

These are unnecessary and probably dangerous.  I don't see any immediate
risk situations in the core XML support or contrib/xml2 itself, but there
could be issues with external uses of libxml2, and in any case it's an
accident waiting to happen.

Revision 1.8.2.4: download - view: text, markup, annotated - select for diffs
Mon Mar 1 05:17:01 2010 UTC (15 years, 8 months ago) by tgl
Branches: REL8_1_STABLE
Diff to: previous 1.8.2.3: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.2.3: +4 -29 lines
Remove xmlCleanupParser calls from contrib/xml2.

These are unnecessary and probably dangerous.  I don't see any immediate
risk situations in the core XML support or contrib/xml2 itself, but there
could be issues with external uses of libxml2, and in any case it's an
accident waiting to happen.

Revision 1.14.2.4: download - view: text, markup, annotated - select for diffs
Mon Mar 1 05:16:54 2010 UTC (15 years, 8 months ago) by tgl
Branches: REL8_2_STABLE
Diff to: previous 1.14.2.3: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.3: +4 -29 lines
Remove xmlCleanupParser calls from contrib/xml2.

These are unnecessary and probably dangerous.  I don't see any immediate
risk situations in the core XML support or contrib/xml2 itself, but there
could be issues with external uses of libxml2, and in any case it's an
accident waiting to happen.

Revision 1.16.2.4: download - view: text, markup, annotated - select for diffs
Mon Mar 1 05:16:48 2010 UTC (15 years, 8 months ago) by tgl
Branches: REL8_3_STABLE
Diff to: previous 1.16.2.3: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.2.3: +4 -29 lines
Remove xmlCleanupParser calls from contrib/xml2.

These are unnecessary and probably dangerous.  I don't see any immediate
risk situations in the core XML support or contrib/xml2 itself, but there
could be issues with external uses of libxml2, and in any case it's an
accident waiting to happen.

Revision 1.23.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 1 05:16:40 2010 UTC (15 years, 8 months ago) by tgl
Branches: REL8_4_STABLE
Diff to: previous 1.23.2.2: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.2: +5 -30 lines
Remove xmlCleanupParser calls from contrib/xml2.

These are unnecessary and probably dangerous.  I don't see any immediate
risk situations in the core XML support or contrib/xml2 itself, but there
could be issues with external uses of libxml2, and in any case it's an
accident waiting to happen.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Mar 1 05:16:35 2010 UTC (15 years, 8 months ago) by tgl
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -30 lines
Remove xmlCleanupParser calls from contrib/xml2.

These are unnecessary and probably dangerous.  I don't see any immediate
risk situations in the core XML support or contrib/xml2 itself, but there
could be issues with external uses of libxml2, and in any case it's an
accident waiting to happen.

Revision 1.6.4.2: download - view: text, markup, annotated - select for diffs
Mon Mar 1 03:41:29 2010 UTC (15 years, 8 months ago) by tgl
Branches: REL8_0_STABLE
Diff to: previous 1.6.4.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.4.1: +158 -230 lines
Back-patch today's memory management fixups in contrib/xml2.

Prior to 8.3, these changes are not critical for compatibility with core
Postgres, since core had no libxml2 calls then.  However there is still
a risk if contrib/xml2 is used along with libxml2 functionality in Perl
or other loadable modules.  So back-patch to all versions.

Also back-patch addition of regression tests.  I'm not sure how many of
the cases are interesting without the interaction with core xml code,
but a silly regression test is still better than none at all.

Revision 1.8.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 1 03:41:22 2010 UTC (15 years, 8 months ago) by tgl
Branches: REL8_1_STABLE
Diff to: previous 1.8.2.2: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.2.2: +151 -225 lines
Back-patch today's memory management fixups in contrib/xml2.

Prior to 8.3, these changes are not critical for compatibility with core
Postgres, since core had no libxml2 calls then.  However there is still
a risk if contrib/xml2 is used along with libxml2 functionality in Perl
or other loadable modules.  So back-patch to all versions.

Also back-patch addition of regression tests.  I'm not sure how many of
the cases are interesting without the interaction with core xml code,
but a silly regression test is still better than none at all.

Revision 1.14.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 1 03:41:17 2010 UTC (15 years, 8 months ago) by tgl
Branches: REL8_2_STABLE
Diff to: previous 1.14.2.2: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.2: +147 -220 lines
Back-patch today's memory management fixups in contrib/xml2.

Prior to 8.3, these changes are not critical for compatibility with core
Postgres, since core had no libxml2 calls then.  However there is still
a risk if contrib/xml2 is used along with libxml2 functionality in Perl
or other loadable modules.  So back-patch to all versions.

Also back-patch addition of regression tests.  I'm not sure how many of
the cases are interesting without the interaction with core xml code,
but a silly regression test is still better than none at all.

Revision 1.16.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 1 03:41:11 2010 UTC (15 years, 8 months ago) by tgl
Branches: REL8_3_STABLE
Diff to: previous 1.16.2.2: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.2.2: +147 -220 lines
Back-patch today's memory management fixups in contrib/xml2.

Prior to 8.3, these changes are not critical for compatibility with core
Postgres, since core had no libxml2 calls then.  However there is still
a risk if contrib/xml2 is used along with libxml2 functionality in Perl
or other loadable modules.  So back-patch to all versions.

Also back-patch addition of regression tests.  I'm not sure how many of
the cases are interesting without the interaction with core xml code,
but a silly regression test is still better than none at all.

Revision 1.23.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 1 03:41:04 2010 UTC (15 years, 8 months ago) by tgl
Branches: REL8_4_STABLE
Diff to: previous 1.23.2.1: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.1: +141 -211 lines
Back-patch today's memory management fixups in contrib/xml2.

Prior to 8.3, these changes are not critical for compatibility with core
Postgres, since core had no libxml2 calls then.  However there is still
a risk if contrib/xml2 is used along with libxml2 functionality in Perl
or other loadable modules.  So back-patch to all versions.

Also back-patch addition of regression tests.  I'm not sure how many of
the cases are interesting without the interaction with core xml code,
but a silly regression test is still better than none at all.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Feb 28 21:31:57 2010 UTC (15 years, 8 months ago) by tgl
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +22 -56 lines
Fix up memory management problems in contrib/xml2.

Get rid of the code that attempted to funnel libxml2's memory allocations
into palloc.   We already knew from experience with the core xml datatype
that trying to do this is simply not reliable.  Unlike the core code, I
did not bother adding a lot of PG_TRY/PG_CATCH logic to try to ensure that
everything is cleaned up on error exit.  Hence, we might leak some memory
if one of these functions fails partway through.  Given the deprecated
status of this contrib module and the fact that errors partway through
the functions shouldn't be too common, it doesn't seem worth worrying about.

Also fix a separate bug in xpath_table, that it did the wrong things
if given a result tuple descriptor with less than 2 columns.  While
such a case isn't very useful in practice, we shouldn't fail or stomp
memory when it occurs.

Add some simple regression tests based on all the reported crash cases
that I have on hand.

This should be back-patched, but let's see if the buildfarm likes it first.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Feb 28 19:51:37 2010 UTC (15 years, 8 months ago) by tgl
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +124 -160 lines
Assorted code cleanup for contrib/xml2.  No change in functionality,
just make it a bit less ugly in places.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Jan 17 12:11:25 2010 UTC (15 years, 9 months ago) by mha
Branches: MAIN
CVS tags: REL9_0_ALPHA4_BRANCH, REL9_0_ALPHA4
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
Silence compiler warning, noted by Stefan Kaltenbrunner

Revision 1.8.2.2: download - view: text, markup, annotated - select for diffs
Tue Dec 29 17:41:35 2009 UTC (15 years, 10 months ago) by heikki
Branches: REL8_1_STABLE
Diff to: previous 1.8.2.1: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.2.1: +0 -4 lines
Previous fix for temporary file management broke returning a set from
PL/pgSQL function within an exception handler. Make sure we use the right
resource owner when we create the tuplestore to hold returned tuples.

Simplify tuplestore API so that the caller doesn't need to be in the right
memory context when calling tuplestore_put* functions. tuplestore.c
automatically switches to the memory context used when the tuplestore was
created. Tuplesort was already modified like this earlier. This patch also
removes the now useless MemoryContextSwitch calls from callers.

Report by Aleksei on pgsql-bugs on Dec 22 2009. Backpatch to 8.1, like
the previous patch that broke this.

Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Tue Dec 29 17:41:25 2009 UTC (15 years, 10 months ago) by heikki
Branches: REL8_2_STABLE
Diff to: previous 1.14.2.1: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.1: +0 -4 lines
Previous fix for temporary file management broke returning a set from
PL/pgSQL function within an exception handler. Make sure we use the right
resource owner when we create the tuplestore to hold returned tuples.

Simplify tuplestore API so that the caller doesn't need to be in the right
memory context when calling tuplestore_put* functions. tuplestore.c
automatically switches to the memory context used when the tuplestore was
created. Tuplesort was already modified like this earlier. This patch also
removes the now useless MemoryContextSwitch calls from callers.

Report by Aleksei on pgsql-bugs on Dec 22 2009. Backpatch to 8.1, like
the previous patch that broke this.

Revision 1.16.2.2: download - view: text, markup, annotated - select for diffs
Tue Dec 29 17:41:18 2009 UTC (15 years, 10 months ago) by heikki
Branches: REL8_3_STABLE
Diff to: previous 1.16.2.1: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.2.1: +0 -4 lines
Previous fix for temporary file management broke returning a set from
PL/pgSQL function within an exception handler. Make sure we use the right
resource owner when we create the tuplestore to hold returned tuples.

Simplify tuplestore API so that the caller doesn't need to be in the right
memory context when calling tuplestore_put* functions. tuplestore.c
automatically switches to the memory context used when the tuplestore was
created. Tuplesort was already modified like this earlier. This patch also
removes the now useless MemoryContextSwitch calls from callers.

Report by Aleksei on pgsql-bugs on Dec 22 2009. Backpatch to 8.1, like
the previous patch that broke this.

Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 29 17:41:09 2009 UTC (15 years, 10 months ago) by heikki
Branches: REL8_4_STABLE
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +1 -5 lines
Previous fix for temporary file management broke returning a set from
PL/pgSQL function within an exception handler. Make sure we use the right
resource owner when we create the tuplestore to hold returned tuples.

Simplify tuplestore API so that the caller doesn't need to be in the right
memory context when calling tuplestore_put* functions. tuplestore.c
automatically switches to the memory context used when the tuplestore was
created. Tuplesort was already modified like this earlier. This patch also
removes the now useless MemoryContextSwitch calls from callers.

Report by Aleksei on pgsql-bugs on Dec 22 2009. Backpatch to 8.1, like
the previous patch that broke this.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Dec 29 17:40:59 2009 UTC (15 years, 10 months ago) by heikki
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +1 -5 lines
Previous fix for temporary file management broke returning a set from
PL/pgSQL function within an exception handler. Make sure we use the right
resource owner when we create the tuplestore to hold returned tuples.

Simplify tuplestore API so that the caller doesn't need to be in the right
memory context when calling tuplestore_put* functions. tuplestore.c
automatically switches to the memory context used when the tuplestore was
created. Tuplesort was already modified like this earlier. This patch also
removes the now useless MemoryContextSwitch calls from callers.

Report by Aleksei on pgsql-bugs on Dec 22 2009. Backpatch to 8.1, like
the previous patch that broke this.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Jun 11 14:48:53 2009 UTC (16 years, 4 months ago) by momjian
Branches: MAIN
CVS tags: REL8_5_ALPHA3_BRANCH, REL8_5_ALPHA3, REL8_5_ALPHA2_BRANCH, REL8_5_ALPHA2, REL8_5_ALPHA1_BRANCH, REL8_5_ALPHA1, REL8_4_RC2, REL8_4_RC1, REL8_4_2, REL8_4_1, REL8_4_0
Branch point for: REL8_4_STABLE
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +15 -15 lines
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
provided by Andrew.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Jan 7 13:44:36 2009 UTC (16 years, 10 months ago) by tgl
Branches: MAIN
CVS tags: REL8_4_BETA2, REL8_4_BETA1
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +7 -5 lines
Fix executor/spi.h to follow our usual conventions for include files, ie,
not include postgres.h nor anything else it doesn't directly need.  Add
#includes to calling files as needed to compensate.  Per my proposal of
yesterday.

This should be noted as a source code change in the 8.4 release notes,
since it's likely to require changes in add-on modules.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Oct 29 00:00:38 2008 UTC (17 years ago) by tgl
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -2 lines
Be more tense about not creating tuplestores with randomAccess = true unless
backwards scan could actually happen.  In particular, pass a flag to
materialize-mode SRFs that tells them whether they need to require random
access.  In passing, also suppress unneeded backward-scan overhead for a
Portal's holdStore tuplestore.  Per my proposal about reducing I/O costs for
tuplestores.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat May 17 01:28:22 2008 UTC (17 years, 5 months ago) by adunstan
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -1 lines
Add $PostgreSQL$ markers to a lot of files that were missing them.

This particular batch was just for *.c and *.h file.

The changes were made with the following 2 commands:

find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o  \( -name '*.[ch]'  \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | while read file ; do head -n 1 < $file | grep -q '^/\*' && echo $file; done | xargs -l sed -i -e '1s/^\// /' -e '1i/*\n * $PostgreSQL:$ \n *'

find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o  \( -name '*.[ch]'  \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | xargs -l sed -i -e '1i/*\n * $PostgreSQL:$ \n */'

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun May 4 16:42:41 2008 UTC (17 years, 6 months ago) by tgl
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -18 lines
Use new cstring/text conversion functions in some additional places.
These changes assume that the varchar and xml data types are represented
the same as text.  (I did not, however, accept the portions of the proposed
patch that wanted to assume bytea is the same as text --- tgl.)

Brendan Jurd

Revision 1.6.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 26 01:19:31 2008 UTC (17 years, 7 months ago) by tgl
Branches: REL8_0_STABLE
CVS tags: REL8_0_23, REL8_0_22, REL8_0_21, REL8_0_20, REL8_0_19, REL8_0_18, REL8_0_17, REL8_0_16
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +10 -8 lines
Fix core dump in contrib/xml2's xpath_table() when the input query returns
a NULL value.  Per bug #4058.

Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 26 01:19:23 2008 UTC (17 years, 7 months ago) by tgl
Branches: REL8_1_STABLE
CVS tags: REL8_1_19, REL8_1_18, REL8_1_17, REL8_1_16, REL8_1_15, REL8_1_14, REL8_1_13, REL8_1_12
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +10 -7 lines
Fix core dump in contrib/xml2's xpath_table() when the input query returns
a NULL value.  Per bug #4058.

Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 26 01:19:17 2008 UTC (17 years, 7 months ago) by tgl
Branches: REL8_2_STABLE
CVS tags: REL8_2_9, REL8_2_8, REL8_2_15, REL8_2_14, REL8_2_13, REL8_2_12, REL8_2_11, REL8_2_10
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +10 -7 lines
Fix core dump in contrib/xml2's xpath_table() when the input query returns
a NULL value.  Per bug #4058.

Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 26 01:19:11 2008 UTC (17 years, 7 months ago) by tgl
Branches: REL8_3_STABLE
CVS tags: REL8_3_9, REL8_3_8, REL8_3_7, REL8_3_6, REL8_3_5, REL8_3_4, REL8_3_3, REL8_3_2
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +10 -7 lines
Fix core dump in contrib/xml2's xpath_table() when the input query returns
a NULL value.  Per bug #4058.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Mar 26 01:19:04 2008 UTC (17 years, 7 months ago) by tgl
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +10 -7 lines
Fix core dump in contrib/xml2's xpath_table() when the input query returns
a NULL value.  Per bug #4058.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Mar 25 22:42:42 2008 UTC (17 years, 7 months ago) by tgl
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +5 -10 lines
Simplify and standardize conversions between TEXT datums and ordinary C
strings.  This patch introduces four support functions cstring_to_text,
cstring_to_text_with_len, text_to_cstring, and text_to_cstring_buffer, and
two macros CStringGetTextDatum and TextDatumGetCString.  A number of
existing macros that provided variants on these themes were removed.

Most of the places that need to make such conversions now require just one
function or macro call, in place of the multiple notational layers that used
to be needed.  There are no longer any direct calls of textout or textin,
and we got most of the places that were using handmade conversions via
memcpy (there may be a few still lurking, though).

This commit doesn't make any serious effort to eliminate transient memory
leaks caused by detoasting toasted text objects before they reach
text_to_cstring.  We changed PG_GETARG_TEXT_P to PG_GETARG_TEXT_PP in a few
places where it was easy, but much more could be done.

Brendan Jurd and Tom Lane

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Jul 15 23:30:19 2007 UTC (18 years, 3 months ago) by tgl
Branches: MAIN
CVS tags: REL8_3_RC2, REL8_3_RC1, REL8_3_BETA4, REL8_3_BETA3, REL8_3_BETA2, REL8_3_BETA1, REL8_3_1, REL8_3_0
Branch point for: REL8_3_STABLE
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +9 -9 lines
Fix a passel of signed vs unsigned char warnings.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Feb 27 23:48:06 2007 UTC (18 years, 8 months ago) by tgl
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
Replace direct assignments to VARATT_SIZEP(x) with SET_VARSIZE(x, len).
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

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Oct 4 00:29:47 2006 UTC (19 years, 1 month ago) by momjian
Branches: MAIN
CVS tags: REL8_2_RC1, REL8_2_BETA3, REL8_2_BETA2, REL8_2_7, REL8_2_6, REL8_2_5, REL8_2_4, REL8_2_3, REL8_2_2, REL8_2_1, REL8_2_0
Branch point for: REL8_2_STABLE
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -1 lines
pgindent run for 8.2.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Sep 16 16:18:11 2006 UTC (19 years, 1 month ago) by tgl
Branches: MAIN
CVS tags: REL8_2_BETA1
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -4 lines
Rename xml_valid() to xml_is_well_formed(), but provide a temporary
alias with the old name for backwards compatibility.  Per discussion,
the old name is actively wrong because validity and well-formedness
have different meanings in XML.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Sep 11 15:30:32 2006 UTC (19 years, 1 month ago) by tgl
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -0 lines
Move xml2's PG_MODULE_MAGIC block to the right source file, per Michael Fuhr.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue May 23 15:21:51 2006 UTC (19 years, 5 months ago) by tgl
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
Remove CXT_printf/CXT1_printf macros.  If anyone had found them to be of
any use in the past many years, we'd have made some effort to include
them in all executor node types; but in fact they were only in
nodeAppend.c and nodeIndexscan.c, up until I copied nodeIndexscan.c's
occurrence into the new bitmap node types.  Remove some other unused
macros in execdebug.h, too.  Some day the whole header probably ought to
go away in favor of better-designed facilities.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Mar 1 06:51:01 2006 UTC (19 years, 8 months ago) by neilc
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -6 lines
Attached is a patch that replaces a bunch of places where StringInfos
are unnecessarily allocated on the heap rather than the stack. If the
StringInfo doesn't outlive the stack frame in which it is created,
there is no need to allocate it on the heap via makeStringInfo() --
stack allocation is faster.  While it's not a big deal unless the
code is in a critical path, I don't see a reason not to save a few
cycles -- using stack allocation is not less readable.

I also cleaned up a bit of code along the way: moved variable
declarations into a more tightly-enclosing scope where possible,
fixed some pointless copying of strings in dblink, etc.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Mar 1 06:30:32 2006 UTC (19 years, 8 months ago) by neilc
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -4 lines
This patch makes the error message strings throughout the backend
more compliant with the error message style guide. In particular,
errdetail should begin with a capital letter and end with a period,
whereas errmsg should not. I also fixed a few related issues in
passing, such as fixing the repeated misspelling of "lexeme" in
contrib/tsearch2 (per Tom's suggestion).

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Oct 15 02:49:08 2005 UTC (20 years ago) by momjian
Branches: MAIN
CVS tags: REL8_1_9, REL8_1_8, REL8_1_7, REL8_1_6, REL8_1_5, REL8_1_4, REL8_1_3, REL8_1_2, REL8_1_11, REL8_1_10, REL8_1_1, REL8_1_0RC1, REL8_1_0BETA4, REL8_1_0
Branch point for: REL8_1_STABLE
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +33 -31 lines
Standard pgindent run for 8.1.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Jul 9 01:53:22 2005 UTC (20 years, 4 months ago) by tgl
Branches: MAIN
CVS tags: REL8_1_0BETA3, REL8_1_0BETA2, REL8_1_0BETA1
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +24 -22 lines
Fix inadequate error checking: you can't assume that fcinfo->resultinfo
is a ReturnSetInfo unless you've tested it with IsA.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jan 9 17:40:40 2005 UTC (20 years, 9 months ago) by tgl
Branches: MAIN
CVS tags: REL8_0_9, REL8_0_8, REL8_0_7, REL8_0_6, REL8_0_5, REL8_0_4, REL8_0_3, REL8_0_2, REL8_0_15, REL8_0_14, REL8_0_13, REL8_0_12, REL8_0_11, REL8_0_10, REL8_0_1, REL8_0_0RC5, REL8_0_0
Branch point for: REL8_0_STABLE
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -0 lines
Fix segfault when xpath_list function is applied to an invalid document.
John Gray

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Dec 2 22:21:12 2004 UTC (20 years, 11 months ago) by momjian
Branches: MAIN
CVS tags: REL8_0_0RC4, REL8_0_0RC3, REL8_0_0RC2, REL8_0_0RC1
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +29 -0 lines
Attached is a patch that adds the function xml_encode_special_chars to
the xml2 contrib module. It's against 8.0beta4. It's intended for
commit.

Markus Bertheau <[email protected]>

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Oct 13 01:26:42 2004 UTC (21 years ago) by neilc
Branches: MAIN
CVS tags: REL8_0_0BETA5, REL8_0_0BETA4
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +6 -6 lines
Cleanup some unnecessary void * casts when using pfree() in contrib/xml
and contrib/xml2

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Aug 29 05:06:39 2004 UTC (21 years, 2 months ago) by momjian
Branches: MAIN
CVS tags: REL8_0_0BETA3, REL8_0_0BETA2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +444 -428 lines
Pgindent run for 8.0.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Mar 7 20:41:27 2004 UTC (21 years, 8 months ago) by neilc
Branches: MAIN
CVS tags: REL8_0_0BETA1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +7 -7 lines
contrib/xml2 updates from John Gray:

I have changed the name of the new parse function to xml_valid and fixed
a reference to SortMem which meant that the code as supplied would work
against 7.3 and 7.4 but wouldn't work in CVS.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Mar 5 03:57:58 2004 UTC (21 years, 8 months ago) by momjian
Branches: MAIN
Move new version of contrib/ xml into xml2, keep old version in /xml.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

PostgreSQL CVSweb <[email protected]>