Re: printTable API (was: Show INHERIT in \du) - Mailing list pgsql-patches

From Brendan Jurd
Subject Re: printTable API (was: Show INHERIT in \du)
Date
Msg-id 37ed240d0805091831x34a41fb8y6c845bc3164a5bb7@mail.gmail.com
Whole thread Raw
In response to Re: printTable API (was: Show INHERIT in \du)  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: printTable API (was: Show INHERIT in \du)  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-patches
Hi guys,

Here's the latest version of the printTable API.  This version is
against the current HEAD and merges in the changes made by the
recently committed psql wrap patch.

This version also includes Alvaro's fix for the issue of pg_strdup not
being available to programs in scripts/ (as quoted below).

Clean compile and all regression tests passed on amd64 gentoo.

Cheers,
BJ

On Thu, May 8, 2008 at 7:55 AM, Alvaro Herrera
<alvherre@commandprompt.com> wrote:
> FWIW I just noticed something else.  With this patch we add pg_strdup
> calls into print.c.  pg_strdup lives in common.c.
>
> This is fine as psql is concerned, but we have another problem which is
> that in bin/scripts there are two programs that want to use
> printQuery().  The problem is that there's no pg_strdup there :-(
>
> The easy solution is to add pg_strdup to bin/scripts/common.c, but there
> we don't have a global progname, so the error report in the out of
> memory case cannot carry the name of the program crashing.
>
> I don't like that, but I don't see any other solution.  Ideas welcome.
>
> --
> Alvaro Herrera                                http://www.CommandPrompt.com/
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support
>

Attachment

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCH] sh: Add support Renesas SuperH
Next
From: Bruce Momjian
Date:
Subject: Re: Database owner installable modules patch