Re: Adding \ev view editor? - Mailing list pgsql-hackers

From David Fetter
Subject Re: Adding \ev view editor?
Date
Msg-id 20090901190343.GW20482@fetter.org
Whole thread Raw
In response to Adding \ev view editor?  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers
On Tue, Sep 01, 2009 at 11:41:31AM -0700, Josh Berkus wrote:
> All,
> 
> I've grown to adore the new \ef function editor.
> 
> It doesn't seem like it would be that difficult to add a view editor as
> \ev.  While editors would also be good for other objects, I don't think
> we can do \et or \er etc. because those objects don't support CREATE OR
> REPLACE.
> 
> Opinions?  Other objects which could take \e?

For objects that don't take CREATE OR REPLACE, \e could include the
object definition at the top in a multi-line comment, then start with 
   ALTER [OBJECT] 

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: David Fetter
Date:
Subject: Re: \d+ for long view definitions?
Next
From: Robert Haas
Date:
Subject: Re: \d+ for long view definitions?