Re: --describe-config crashes - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: --describe-config crashes
Date
Msg-id 200803022028.m22KSQu03409@momjian.us
Whole thread Raw
In response to Re: --describe-config crashes  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:
> Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
> > Function printMixedStruct calls printf with NULL argument. It causes
> > segmentation fault. Please, apply it for 8.3 - 8.1 too.
>
> Ugh, I guess we've only tested --describe-config on platforms where
> %s treats a NULL pointer the same as an empty string.
>
> Since that's also effectively the way GUC handles it, I'm inclined
> to think we should print NULL as "" not "(NULL)".  Otherwise,
> will apply.

Tom has applied this patch to CVS HEAD and all relevant back-branches.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-patches by date:

Previous
From: David Fetter
Date:
Subject: Re: Fix pgstatindex using for large indexes
Next
From: Bruce Momjian
Date:
Subject: Re: fix in --help output