Re[2]: [BUGS] BUG #5887: EXPLAIN returns more than 1000 rows when table is empty

2011-02-15 Thread Warstone
Understood. Can you show me where it is written in the documentation? (I just want to know is, whether it is in the documentation and if not, probably should add this case) Tue, 15 Feb 2011 14:52:17 -0500 письмо от Tom Lane : > "Nick Baryshnikov" writes: > > Description:EXPLAIN returns

Re: [BUGS] BUG #5887: EXPLAIN returns more than 1000 rows when table is empty

2011-02-15 Thread Tom Lane
"Nick Baryshnikov" writes: > Description:EXPLAIN returns more than 1000 rows when table is empty This is not a bug; it's intentional behavior. As long as the recorded size of the table is zero, the planner assumes that information is probably obsolete. regards, t

[BUGS] BUG #5887: EXPLAIN returns more than 1000 rows when table is empty

2011-02-15 Thread Nick Baryshnikov
The following bug has been logged online: Bug reference: 5887 Logged by: Nick Baryshnikov Email address: warst...@list.ru PostgreSQL version: 8.4.7 Operating system: Ubuntu 10.10 Description:EXPLAIN returns more than 1000 rows when table is empty Details: CREATE TAB

Re: [BUGS] BUG #5885: Strange rows estimation for left join

2011-02-15 Thread Tom Lane
Maxim Boguk writes: > Test case look like: > create table "references" ( attr_id integer, reference integer, > object_id integer ); > insert into "references" select *100**(random()), > *10**(random()^*10*), *100**(random()) from > generate_series(*1*,*1000*); > create index xif01refe

Re: [BUGS] BUG #5886: pgbench usage

2011-02-15 Thread Kevin Grittner
"muthu" wrote: > i want to change the max clients and max threads in pgbench..is it > possible in postgres...then how? > default is 1 thread and 1 client http://www.postgresql.org/docs/current/interactive/pgbench.html In the future, please post such questions to pgsql-general or pgsql-novice

[BUGS] BUG #5886: pgbench usage

2011-02-15 Thread muthu
The following bug has been logged online: Bug reference: 5886 Logged by: muthu Email address: dbamu...@gmail.com PostgreSQL version: 9.0.2 Operating system: unbuntu 8.0 Description:pgbench usage Details: i want to change the max clients and max threads in pgbench..i

Re: [BUGS] BUG #5885: Strange rows estimation for left join

2011-02-15 Thread Maxim Boguk
Hi. Test case look like: create table "references" ( attr_id integer, reference integer, object_id integer ); insert into "references" select *100**(random()), *10**(random()^*10*), *100**(random()) from generate_series(*1*,*1000*); create index xif01references on "references" ( refer

Re: [BUGS] BUG #5883: Error when mixing SPI_returntuple with returning regular HeapTuple

2011-02-15 Thread Vegard Bønes
Ok, I tried to modify the example functions get_data_alternative_a() and get_data_alternative_b(), so that they start with SPI_connect, and end with SPI_finish. Also I removed SPI_connect and SPI_finish from the main function. As I understand you, that should have solved the problem. The result,