Fixes for psql describeOneTableDetails - Mailing list pgsql-hackers

From Kris Jurka
Subject Fixes for psql describeOneTableDetails
Date
Msg-id Pine.BSO.4.64.0810081931240.11647@leary.csoft.net
Whole thread Raw
Responses Re: Fixes for psql describeOneTableDetails
List pgsql-hackers
Attached are two and a half fixes for problems in psql's 
describeOneTableDetails function.

1) After PQclear(res) we must null res out, so that later error handling 
cleanup doesn't try to PQclear it again.

2) In error cleanup we cannot call printTableCleanup unless we've called 
printTableInit.

3) When describing a sequence it queries the sequence by name and was not 
schema qualifying it which is necessary when describing objects not in the 
search path.  This is still busted because it does not correctly quote the 
identifiers.

Kris Jurka

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [WIP] plpgsql is not translate-aware
Next
From: Josh Berkus
Date:
Subject: WITH RECURSIVE ... simplified syntax?