On Tue, 2006-09-19 at 23:22 +0200, Milen Kulev wrote:
> Hello Shoaib,
> I know the SETOF funcitons. I want to simulate (somehow)
> producer/consumer relationship with SETOF(pipelined) functions. The
> first (producer )function generates records (just like your test_pipe
> function), and the seco
I dont think so that will be possible using SETOF function ...You might have to partition the current query and this way can distribute the full load of the query if there is too much data invovled.Thanks,
-- Shoaib MirEnterpriseDB (www.enterprisedb.com)On 9/20/06, Milen Kulev <
[EMAIL PROTECTED]>
Title: Nachricht
Talha,
do you
know how much memory is consumed by the SETOF function
?
What
happens with memory consumption of the function if
SELECT
ename FROM emp WHERE sal > $1
returns 10 mio
rows ?
I suppose
that memory for the RECORD structure is immediately reused by the
next
Title: Nachricht
Hello
Shoaib,
I know
the SETOF funcitons. I want to simulate (somehow) producer/consumer
relationship with SETOF(pipelined) functions. The first
(producer )function generates records (just like your test_pipe function),
and the second function consumers the records , pro
Hi Milen,
Pipelined function is a code that acts like a database table.
Inorder to use this functionality in postgres you would need to write the function like this
CREATE OR REPLACE FUNCTION get_test_data (numeric) RETURNS SETOF RECORD AS$$DECLARE temp_rec RECORD;BEGIN FOR temp_r
I think pipelined functions are code you can pretend is a database table.
For example you can do it like this in Oracle:
select * from PLSQL_FUNCTION;You can achieve something similar in PostgreSQL using RETURN SETOF functions like this:
CREATE OR REPLACE FUNCTION test_pipe (int)
RETURNS SETO
Hello Lister,
I am curios whether I can emulate the Oracle pipelined functions functionality
in PG too (using RETURN NEXT ). For more
information and examples about Oracle pipelined functions see:
http://asktom.oracle.com/pls/ask/f?p=4950:8:8127757633768425921::NO::F4950_P8_DISPLAYID,F4950_P8_CRI
Rod Taylor wrote:
> On Tue, 2006-09-19 at 15:22 +0200, Ivan Voras wrote:
>> I've just fired off a "DELETE FROM table" command (i.e. unfiltered
>> DELETE) on a trivially small table but with many foreign key references
>> (on similar-sized tables), and I'm waiting for it to finish. It's been
>> 1
You do not have indexes on all of the columns which are linked by
foreign key constraints.
For example, let's say that I had a "scientist" table with a single
column "scientist_name" and another table "discovery" which had
"scientist_name" as a column with a foreign key constraint to the
"scientis
On Tue, 2006-09-19 at 15:22 +0200, Ivan Voras wrote:
> I've just fired off a "DELETE FROM table" command (i.e. unfiltered
> DELETE) on a trivially small table but with many foreign key references
> (on similar-sized tables), and I'm waiting for it to finish. It's been
> 10 minutes now, which see
> I've just fired off a "DELETE FROM table" command (i.e. unfiltered
> DELETE) on a trivially small table but with many foreign key references
> (on similar-sized tables), and I'm waiting for it to finish. It's been
> 10 minutes now, which seems very excessive for a table of 9000 rows on a
> 3
Mike,
> On Mon, Sep 18, 2006 at 07:14:56PM -0400, Alex Turner wrote:
> >If you have a table with 100million records, each of which is
200bytes
> long,
> >that gives you roughtly 20 gig of data (assuming it was all written
> neatly
> >and hasn't been updated much).
>
I'll keep that in mind (minimi
I've just fired off a "DELETE FROM table" command (i.e. unfiltered
DELETE) on a trivially small table but with many foreign key references
(on similar-sized tables), and I'm waiting for it to finish. It's been
10 minutes now, which seems very excessive for a table of 9000 rows on a
3 GHz deskto
Hi, Jerome,
Jérôme BENOIS wrote:
>>> Now i Have 335 concurrent connections, i decreased work_mem parameter to
>>> 32768 and disabled Hyper Threading in BIOS. But my CPU load is still
>>> very important.
>> What are your settings for commit_siblings and commit_delay?
> It default :
>
> #commit_de
Markus,
Le mardi 19 septembre 2006 à 11:53 +0200, Markus Schaber a écrit :
> Hi, Jerome,
>
> Jérôme BENOIS wrote:
>
> > Now i Have 335 concurrent connections, i decreased work_mem parameter to
> > 32768 and disabled Hyper Threading in BIOS. But my CPU load is still
> > very important.
>
> What
Hi, Jerome,
Jérôme BENOIS wrote:
> Now i Have 335 concurrent connections, i decreased work_mem parameter to
> 32768 and disabled Hyper Threading in BIOS. But my CPU load is still
> very important.
What are your settings for commit_siblings and commit_delay?
> Tomorrow morning i plan to add 2Gig
16 matches
Mail list logo