Re: [HACKERS] \ef should probably append semicolons

2008-10-11 Thread David Fetter
On Fri, Oct 10, 2008 at 09:10:50PM -0400, Tom Lane wrote: Joshua Tolley [EMAIL PROTECTED] writes: The new \ef psql command creates nicely usable CREATE OR REPLACE FUNCTION ... text based on the function I tell it to edit, but the text it creates *doesn't* include a final semicolon, so when

[HACKERS] \ef should probably append semicolons

2008-10-10 Thread Joshua Tolley
The new \ef psql command creates nicely usable CREATE OR REPLACE FUNCTION ... text based on the function I tell it to edit, but the text it creates *doesn't* include a final semicolon, so when I exit my editor-of-choice after messing with my function, it doesn't run the code I've given it until I

Re: [HACKERS] \ef should probably append semicolons

2008-10-10 Thread Tom Lane
Joshua Tolley [EMAIL PROTECTED] writes: The new \ef psql command creates nicely usable CREATE OR REPLACE FUNCTION ... text based on the function I tell it to edit, but the text it creates *doesn't* include a final semicolon, so when I exit my editor-of-choice after messing with my function, it

Re: [HACKERS] \ef should probably append semicolons

2008-10-10 Thread Joshua Tolley
On Fri, Oct 10, 2008 at 7:10 PM, Tom Lane [EMAIL PROTECTED] wrote: Joshua Tolley [EMAIL PROTECTED] writes: The new \ef psql command creates nicely usable CREATE OR REPLACE FUNCTION ... text based on the function I tell it to edit, but the text it creates *doesn't* include a final semicolon, so

Re: [HACKERS] \ef should probably append semicolons

2008-10-10 Thread David E. Wheeler
On Oct 10, 2008, at 20:27, Joshua Tolley wrote: Now, if you want to fix psql so that even with a semicolon there it will redisplay the command buffer and wait for a return, then I'd agree that that's an improvement. I couldn't figure out how to get readline to cooperate with that ... but