Re: Refactoring psql for backward-compatibility - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: Refactoring psql for backward-compatibility
Date
Msg-id 43A0CC58.4060001@familyhealth.com.au
Whole thread Raw
In response to Re: Refactoring psql for backward-compatibility  (David Fetter <david@fetter.org>)
List pgsql-hackers
>>If it was me I'd just copy the pg_dump way of doing things...
> 
> To the extent possible, I'd like to preserve the exact functionality
> (or lack thereof) of previous versions.  Would this be possible that
> way?

Don't see it'd be too hard.  All pg_dump basically does is this:

if (version <= 7.3) {  query = "..";
else if (version == 7.4) {  query = "..";
else  query = "..";

Other than that you might need some smarts in the output table display 
logic so that it doesn't "assume" what columns are available from the 
queries.

Or something.

Chris



pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: Refactoring psql for backward-compatibility
Next
From: Tom Lane
Date:
Subject: Improving planning of outer joins