Re: [HACKERS] Add \i option to bring in the specified file as a quoted literal

2013-11-25 Thread Piotr Marcinczyk
On Fri, 2013-11-22 at 09:54 -0300, Alvaro Herrera wrote: > Amit Kapila escribió: > > On Fri, Nov 22, 2013 at 1:33 AM, Alvaro Herrera > > wrote: > > > > \ib homer ~/photos/homer.jpg > > > insert into people (name, photo) values ('Homer', :homer); > > > > Isn't something similar already supported

Re: [HACKERS] Add \i option to bring in the specified file as a quoted literal

2013-11-22 Thread Alvaro Herrera
Amit Kapila escribió: > On Fri, Nov 22, 2013 at 1:33 AM, Alvaro Herrera > wrote: > > \ib homer ~/photos/homer.jpg > > insert into people (name, photo) values ('Homer', :homer); > > Isn't something similar already supported as mentioned in docs: > > One example use of this mechanism is to copy

Re: [HACKERS] Add \i option to bring in the specified file as a quoted literal

2013-11-21 Thread Amit Kapila
On Fri, Nov 22, 2013 at 1:33 AM, Alvaro Herrera wrote: > Piotr Marcinczyk escribió: > >> >> + \ib > class="parameter">filename [ > class="parameter">quote_string ] >> + >> + >> + The \ib command appends content of file >> filename >> + to curren

Re: [HACKERS] Add \i option to bring in the specified file as a quoted literal

2013-11-21 Thread Alvaro Herrera
Piotr Marcinczyk escribió: > > + \ib class="parameter">filename [ class="parameter">quote_string ] > + > + > + The \ib command appends content of file > filename > + to current query buffer. If parameter > quote_string > + is not se

Re: [HACKERS] Add \i option to bring in the specified file as a quoted literal

2013-11-18 Thread Piotr Marcinczyk
Dnia 2013-11-13, śro o godzinie 10:26 -0500, Bruce Momjian pisze: > On Wed, Nov 13, 2013 at 08:58:07AM +0530, Amit Kapila wrote: > > On Tue, Nov 12, 2013 at 9:37 PM, Bruce Momjian wrote: > > > On Wed, Oct 23, 2013 at 10:31:39AM +0530, Amit Kapila wrote: > > >> On Tue, Oct 22, 2013 at 3:04 AM, Piot

Re: [HACKERS] Add \i option to bring in the specified file as a quoted literal

2013-11-13 Thread Bruce Momjian
On Wed, Nov 13, 2013 at 08:58:07AM +0530, Amit Kapila wrote: > On Tue, Nov 12, 2013 at 9:37 PM, Bruce Momjian wrote: > > On Wed, Oct 23, 2013 at 10:31:39AM +0530, Amit Kapila wrote: > >> On Tue, Oct 22, 2013 at 3:04 AM, Piotr Marcinczyk > >> wrote: > >> > Hi, > >> > > >> > I would like to implem

Re: [HACKERS] Add \i option to bring in the specified file as a quoted literal

2013-11-12 Thread Amit Kapila
On Tue, Nov 12, 2013 at 9:37 PM, Bruce Momjian wrote: > On Wed, Oct 23, 2013 at 10:31:39AM +0530, Amit Kapila wrote: >> On Tue, Oct 22, 2013 at 3:04 AM, Piotr Marcinczyk wrote: >> > Hi, >> > >> > I would like to implement item from TODO marked as easy: "Add \i option >> > to bring in the specifie

Re: [HACKERS] Add \i option to bring in the specified file as a quoted literal

2013-11-12 Thread Bruce Momjian
On Wed, Oct 23, 2013 at 10:31:39AM +0530, Amit Kapila wrote: > On Tue, Oct 22, 2013 at 3:04 AM, Piotr Marcinczyk wrote: > > Hi, > > > > I would like to implement item from TODO marked as easy: "Add \i option > > to bring in the specified file as a quoted literal". I understand intent > > of this i

Re: [HACKERS] Add \i option to bring in the specified file as a quoted literal

2013-10-22 Thread Amit Kapila
On Tue, Oct 22, 2013 at 3:04 AM, Piotr Marcinczyk wrote: > Hi, > > I would like to implement item from TODO marked as easy: "Add \i option > to bring in the specified file as a quoted literal". I understand intent > of this item, to be able to have parts of query written in separate > files (now i

[HACKERS] Add \i option to bring in the specified file as a quoted literal

2013-10-21 Thread Piotr Marcinczyk
Hi, I would like to implement item from TODO marked as easy: "Add \i option to bring in the specified file as a quoted literal". I understand intent of this item, to be able to have parts of query written in separate files (now it is impossible, because \i tries to execute content of file as a sep