Duplicate code in psql's \ commands - Mailing list pgsql-hackers

From David Fetter
Subject Duplicate code in psql's \ commands
Date
Msg-id 20090419164530.GP10700@fetter.org
Whole thread Raw
Responses Re: Duplicate code in psql's \ commands
List pgsql-hackers
Folks,

While working on the new improved \df, I noticed a pretty major
infelicity, namely that \ commands get validated by two completely
independent code paths, namely tab-complete.c and
command.c/describe.c.

I'm thinking it would be a good idea to factor the validating out as
far as possible.  This would also make it easier to make sure that tab
completion and \'s output match to the maximal reasonable extent.

Objections?

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Replacing plpgsql's lexer
Next
From: Greg Stark
Date:
Subject: Re: Replacing plpgsql's lexer