Re: XMLSerialize: version and explicit XML declaration

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Vik Fearing <vik(at)postgresfriends(dot)org>, Chapman Flack <chap(at)anastigmatix(dot)net>
Subject: Re: XMLSerialize: version and explicit XML declaration
Date: 2024-09-25 16:02:47
Message-ID: 3712088.1727280167@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jim Jones <jim(dot)jones(at)uni-muenster(dot)de> writes:
> Is there any validation mechanism for VERSION <character string
> literal>?

AFAICS, all we do with an embedded XML version string is pass it to
libxml2's xmlNewDoc(), which is the authority on whether it means
anything. I'd be inclined to do the same here.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2024-09-25 16:05:27 Re: Possible null pointer dereference in afterTriggerAddEvent()
Previous Message Max Johnson 2024-09-25 15:17:45 Re: pg_ctl/miscinit: print "MyStartTime" as a long long instead of long to avoid 2038 problem.