Re: support for printing/exporting xml - Mailing list pgsql-patches

From Neil Conway
Subject Re: support for printing/exporting xml
Date
Msg-id 873c9zggat.fsf@mailbox.samurai.com
Whole thread Raw
In response to support for printing/exporting xml  (Brian Moore <brianmooreca@yahoo.com>)
Responses Re: support for printing/exporting xml
List pgsql-patches
Brian Moore <brianmooreca@yahoo.com> writes:
> please find attached my support for printing/exporting
> xml from postgresql.

A few quick comments:

- why is it necessary to include an entire hash table implementation?
  Why does this code require a hash table to begin with, considering
  the relatively small size of pg_type? ISTM something far simpler
  (for example, a dynamically allocated sorted array and a binary
  search) would be sufficient.

- testing code doesn't belong in libpq

- you'll need to update the libpq docs

- you should follow the libpq API naming convention: the function
  should be look like some variant of PQresultAsXML()

- context diffs are the preferred format

-Neil


pgsql-patches by date:

Previous
From: Joe Conway
Date:
Subject: Re: [GENERAL] SELECT Question
Next
From: "Mark Cave-Ayland"
Date:
Subject: Re: ANALYZE patch for review