Re: pgsql-server/src/bin/psql print.c - Mailing list pgsql-committers

From Christopher Kings-Lynne
Subject Re: pgsql-server/src/bin/psql print.c
Date
Msg-id 20021103193652.W43515-100000@houston.familyhealth.com.au
Whole thread Raw
In response to pgsql-server/src/bin/psql print.c  (tgl@postgresql.org (Tom Lane))
Responses Re: pgsql-server/src/bin/psql print.c  (Rod Taylor <rbt@rbt.ca>)
List pgsql-committers
Out of interest, how does one get a table of no columns?

Chris

On Fri, 1 Nov 2002, Tom Lane wrote:

> CVSROOT:    /cvsroot
> Module name:    pgsql-server
> Changes by:    tgl@postgresql.org    02/11/01 10:12:19
>
> Modified files:
>     src/bin/psql   : print.c
>
> Log message:
>     Avoid malloc(0) when printing a table of no columns.  On some platforms
>     this returns NULL, which confuses the code.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>


pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql-server/contrib/dblink expected/dblink.ou ...
Next
From: Rod Taylor
Date:
Subject: Re: pgsql-server/src/bin/psql print.c