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

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Tom Lane <tgl(at)postgresql(dot)org>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql-server/src/bin/psql print.c
Date: 2002-11-03 11:37:04
Message-ID: 20021103193652.W43515-100000@houston.familyhealth.com.au
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(at)postgresql(dot)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
>

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Rod Taylor 2002-11-03 14:49:13 Re: pgsql-server/src/bin/psql print.c
Previous Message Tom Lane 2002-11-03 04:52:09 pgsql-server/contrib/dblink expected/dblink.ou ...