dbTalk Databases Forums  

editing pl/pgsql procedures

comp.databases.postgresql comp.databases.postgresql


Discuss editing pl/pgsql procedures in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Coniglio Sgabbiato
 
Posts: n/a

Default editing pl/pgsql procedures - 11-21-2008 , 09:28 AM






Hi all,
I am new to Postgres and now I am doing some programming in pl/pgsql. At
this moment I am wirting procedures with a text editor and pasting them
on psql commandline via putty (with the annoyance that you cannot paste
more than a certain amount of text, so I have to slice them).
Since I use and enjoy Vim directly from the server vis ssh, I wish to
know if there is a way to create/edit pl/pgsql procedures directly from
Vim. Dou you have a tip?

Thanks,

Reply With Quote
  #2  
Old   
Andreas Kretschmer
 
Posts: n/a

Default Re: editing pl/pgsql procedures - 11-21-2008 , 10:31 AM






Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> wrote:
Quote:
Hi all,
I am new to Postgres and now I am doing some programming in pl/pgsql. At
this moment I am wirting procedures with a text editor and pasting them
on psql commandline via putty (with the annoyance that you cannot paste
more than a certain amount of text, so I have to slice them).
Since I use and enjoy Vim directly from the server vis ssh, I wish to
know if there is a way to create/edit pl/pgsql procedures directly from
Vim. Dou you have a tip?
You can use vim and store your function into a regular file. After that,
within psql, you can read that file with \i <your_file>.

Other way, within psql, you can use \e to edit the current query buffer
with your $EDITOR.



Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°


Reply With Quote
  #3  
Old   
Andreas Kretschmer
 
Posts: n/a

Default Re: editing pl/pgsql procedures - 11-21-2008 , 10:31 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> wrote:
Quote:
Hi all,
I am new to Postgres and now I am doing some programming in pl/pgsql. At
this moment I am wirting procedures with a text editor and pasting them
on psql commandline via putty (with the annoyance that you cannot paste
more than a certain amount of text, so I have to slice them).
Since I use and enjoy Vim directly from the server vis ssh, I wish to
know if there is a way to create/edit pl/pgsql procedures directly from
Vim. Dou you have a tip?
You can use vim and store your function into a regular file. After that,
within psql, you can read that file with \i <your_file>.

Other way, within psql, you can use \e to edit the current query buffer
with your $EDITOR.



Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°


Reply With Quote
  #4  
Old   
Andreas Kretschmer
 
Posts: n/a

Default Re: editing pl/pgsql procedures - 11-21-2008 , 10:31 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> wrote:
Quote:
Hi all,
I am new to Postgres and now I am doing some programming in pl/pgsql. At
this moment I am wirting procedures with a text editor and pasting them
on psql commandline via putty (with the annoyance that you cannot paste
more than a certain amount of text, so I have to slice them).
Since I use and enjoy Vim directly from the server vis ssh, I wish to
know if there is a way to create/edit pl/pgsql procedures directly from
Vim. Dou you have a tip?
You can use vim and store your function into a regular file. After that,
within psql, you can read that file with \i <your_file>.

Other way, within psql, you can use \e to edit the current query buffer
with your $EDITOR.



Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°


Reply With Quote
  #5  
Old   
Andreas Kretschmer
 
Posts: n/a

Default Re: editing pl/pgsql procedures - 11-21-2008 , 10:31 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> wrote:
Quote:
Hi all,
I am new to Postgres and now I am doing some programming in pl/pgsql. At
this moment I am wirting procedures with a text editor and pasting them
on psql commandline via putty (with the annoyance that you cannot paste
more than a certain amount of text, so I have to slice them).
Since I use and enjoy Vim directly from the server vis ssh, I wish to
know if there is a way to create/edit pl/pgsql procedures directly from
Vim. Dou you have a tip?
You can use vim and store your function into a regular file. After that,
within psql, you can read that file with \i <your_file>.

Other way, within psql, you can use \e to edit the current query buffer
with your $EDITOR.



Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°


Reply With Quote
  #6  
Old   
Andreas Kretschmer
 
Posts: n/a

Default Re: editing pl/pgsql procedures - 11-21-2008 , 10:31 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> wrote:
Quote:
Hi all,
I am new to Postgres and now I am doing some programming in pl/pgsql. At
this moment I am wirting procedures with a text editor and pasting them
on psql commandline via putty (with the annoyance that you cannot paste
more than a certain amount of text, so I have to slice them).
Since I use and enjoy Vim directly from the server vis ssh, I wish to
know if there is a way to create/edit pl/pgsql procedures directly from
Vim. Dou you have a tip?
You can use vim and store your function into a regular file. After that,
within psql, you can read that file with \i <your_file>.

Other way, within psql, you can use \e to edit the current query buffer
with your $EDITOR.



Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°


Reply With Quote
  #7  
Old   
Andreas Kretschmer
 
Posts: n/a

Default Re: editing pl/pgsql procedures - 11-21-2008 , 10:31 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> wrote:
Quote:
Hi all,
I am new to Postgres and now I am doing some programming in pl/pgsql. At
this moment I am wirting procedures with a text editor and pasting them
on psql commandline via putty (with the annoyance that you cannot paste
more than a certain amount of text, so I have to slice them).
Since I use and enjoy Vim directly from the server vis ssh, I wish to
know if there is a way to create/edit pl/pgsql procedures directly from
Vim. Dou you have a tip?
You can use vim and store your function into a regular file. After that,
within psql, you can read that file with \i <your_file>.

Other way, within psql, you can use \e to edit the current query buffer
with your $EDITOR.



Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°


Reply With Quote
  #8  
Old   
Andreas Kretschmer
 
Posts: n/a

Default Re: editing pl/pgsql procedures - 11-21-2008 , 10:31 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> wrote:
Quote:
Hi all,
I am new to Postgres and now I am doing some programming in pl/pgsql. At
this moment I am wirting procedures with a text editor and pasting them
on psql commandline via putty (with the annoyance that you cannot paste
more than a certain amount of text, so I have to slice them).
Since I use and enjoy Vim directly from the server vis ssh, I wish to
know if there is a way to create/edit pl/pgsql procedures directly from
Vim. Dou you have a tip?
You can use vim and store your function into a regular file. After that,
within psql, you can read that file with \i <your_file>.

Other way, within psql, you can use \e to edit the current query buffer
with your $EDITOR.



Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°


Reply With Quote
  #9  
Old   
Andreas Kretschmer
 
Posts: n/a

Default Re: editing pl/pgsql procedures - 11-21-2008 , 10:31 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> wrote:
Quote:
Hi all,
I am new to Postgres and now I am doing some programming in pl/pgsql. At
this moment I am wirting procedures with a text editor and pasting them
on psql commandline via putty (with the annoyance that you cannot paste
more than a certain amount of text, so I have to slice them).
Since I use and enjoy Vim directly from the server vis ssh, I wish to
know if there is a way to create/edit pl/pgsql procedures directly from
Vim. Dou you have a tip?
You can use vim and store your function into a regular file. After that,
within psql, you can read that file with \i <your_file>.

Other way, within psql, you can use \e to edit the current query buffer
with your $EDITOR.



Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°


Reply With Quote
  #10  
Old   
Coniglio Sgabbiato
 
Posts: n/a

Default Re: editing pl/pgsql procedures - 11-21-2008 , 10:38 AM



Andreas Kretschmer ha scritto:
Quote:
Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> wrote:
Hi all,
I am new to Postgres and now I am doing some programming in pl/pgsql. At
this moment I am wirting procedures with a text editor and pasting them
on psql commandline via putty (with the annoyance that you cannot paste
more than a certain amount of text, so I have to slice them).
Since I use and enjoy Vim directly from the server vis ssh, I wish to
know if there is a way to create/edit pl/pgsql procedures directly from
Vim. Dou you have a tip?

You can use vim and store your function into a regular file. After that,
within psql, you can read that file with \i <your_file>.

Other way, within psql, you can use \e to edit the current query buffer
with your $EDITOR.



Andreas
Simply great, thanks!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.