Searching postgres soruces (was: Re: [GENERAL] array in a store procedure in C)

2015-02-04 Thread Merlin Moncure
On Tue, Feb 3, 2015 at 4:20 PM, Jim Nasby wrote: > On 2/3/15 7:03 AM, holger.friedrich-fa-triva...@it.nrw.de wrote: >> >> On Tuesday, February 03, 2015 3:58 AM, Jim Nasby wrote: >>> >>> Note that the recursive grep starts at the current directory, so make >>> sure you're actually in the pgsql sour

Re: [GENERAL] array in a store procedure in C

2015-02-03 Thread Jim Nasby
On 2/3/15 7:03 AM, holger.friedrich-fa-triva...@it.nrw.de wrote: On Tuesday, February 03, 2015 3:58 AM, Jim Nasby wrote: Note that the recursive grep starts at the current directory, so make sure you're actually in the pgsql source code when you use it. cat ~/bin/pg_grep #!/bin/sh grep -r "

Re: [GENERAL] array in a store procedure in C

2015-02-03 Thread Holger.Friedrich-Fa-Trivadis
On Tuesday, February 03, 2015 3:58 AM, Jim Nasby wrote: > Note that the recursive grep starts at the current directory, so make sure > you're actually in the pgsql source code when you use it. > cat ~/bin/pg_grep > #!/bin/sh > > grep -r "$*" * | grep -iv TAGS: | grep -v 'Binary file' | grep -v '.

Re: [GENERAL] array in a store procedure in C

2015-02-02 Thread Juan Pablo L
Thanks. On Feb 2, 2015 8:58 PM, "Jim Nasby" wrote: > On 1/29/15 10:53 PM, Juan Pablo L wrote: > >> i will look there ... i have been looking in a lot of source files and >> can not find anything that helps but i will look in those specific >> files. Thanks a lot. >> > > You might find this shell

Re: [GENERAL] array in a store procedure in C

2015-02-02 Thread Jim Nasby
On 1/29/15 10:53 PM, Juan Pablo L wrote: i will look there ... i have been looking in a lot of source files and can not find anything that helps but i will look in those specific files. Thanks a lot. You might find this shell script useful; it's meant to make it easy to grep the entire codebas

Re: [GENERAL] array in a store procedure in C

2015-01-29 Thread Juan Pablo L
i will look there ... i have been looking in a lot of source files and can not find anything that helps but i will look in those specific files. Thanks a lot. On Jan 29, 2015 9:09 PM, "Michael Paquier" wrote: > On Thu, Jan 29, 2015 at 11:45 PM, Juan Pablo L > wrote: > > I would really appreciate

Re: [GENERAL] array in a store procedure in C

2015-01-29 Thread Michael Paquier
On Thu, Jan 29, 2015 at 11:45 PM, Juan Pablo L wrote: > I would really appreciate if someone could give me guidelines how to > read/extract the rows from the array and then get each element from the > rows. thank you very much!! src/backend/utils/adt/array_userfuncs.c is a mine of information con

[GENERAL] array in a store procedure in C

2015-01-29 Thread Juan Pablo L
Hi, i m developing a store procedure that accepts an array of rows, this is the simplified code: http://pastebin.com/wC92Dh7f Please note that i left out everything that is not related, in the function, to the problem at hand, only the code related to my problem is included. The above does no