Re: [BUGS] BUG #3662: Seems that more than one run of a functions causes an error

2007-10-10 Thread Tom Lane
Oh, there's another solution I forgot to mention: you could write the nextval call as nextval('s'::text) which would force a runtime lookup of 's' on each call. On the whole though, numbering the rows yourself with a local counter is going to run a lot faster. rega

Re: [BUGS] BUG #3662: Seems that more than one run of a functions causes an error

2007-10-10 Thread Tom Lane
"Robins Tharakan" <[EMAIL PROTECTED]> writes: > BEGIN > CREATE TEMPORARY SEQUENCE s INCREMENT BY 1 START WITH 1; > FOR rec in > SELECT nextval('s') as rank, tt.scheme_code, tt.ret > ... > DROP SEQUENCE s; > END; Sorry, that's not going to work, for fundamentally the same re

Re: [BUGS] BUG #3667: Job scheduling with Greenplum fails

2007-10-10 Thread Roberts, Jon
What if the new query has a significantly lower cost compared to the older one? The current query found in pgaJob.cpp: SELECT *, (SELECT jlgstatus FROM pgagent.pga_joblog jl WHERE jl.jlgjobid = j.jobid ORDER BY jlgid DESC LIMIT 1) AS joblastresult FROM pgagent.pga_job j

Re: [BUGS] BUG #3668: type error in serial

2007-10-10 Thread Tom Lane
"Eric Weimer" <[EMAIL PROTECTED]> writes: > Creating a table with a column of type serial causes the creation of a > sequence tied as the default value for the column. > The actual type of the column is integer, however the sequence created is of > type bigint. If the sequence is created as a bigin

Re: [BUGS] BUG #3667: Job scheduling with Greenplum fails

2007-10-10 Thread Tom Lane
"Roberts, Jon" <[EMAIL PROTECTED]> writes: > What if the new query has a significantly lower cost compared to the older > one? Much as I'd like the planner to be infallible, it ain't; estimated costs are no proof of any real-world performance difference. Better show EXPLAIN ANALYZE numbers if you

[BUGS] BUG #3668: type error in serial

2007-10-10 Thread Eric Weimer
The following bug has been logged online: Bug reference: 3668 Logged by: Eric Weimer Email address: [EMAIL PROTECTED] PostgreSQL version: 8.1 Operating system: Linux Description:type error in serial Details: Creating a table with a column of type serial causes the c

Re: [BUGS] BUG #3667: Job scheduling with Greenplum fails

2007-10-10 Thread Tom Lane
"Jon Roberts" <[EMAIL PROTECTED]> writes: > Greenplum doesn't support "correlated subqueries" which PGAdmin III uses > when PgAgent is installed. Surely this complaint should be directed to Greenplum. Correlated subqueries are a required entry-level feature in the SQL92 standard, and have been

[BUGS] BUG #3667: Job scheduling with Greenplum fails

2007-10-10 Thread Jon Roberts
The following bug has been logged online: Bug reference: 3667 Logged by: Jon Roberts Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2 Operating system: Solaris Description:Job scheduling with Greenplum fails Details: Greenplum doesn't support "correlated sub

Re: [BUGS] PQmakeEmptyPQresult makes my application dumps core?

2007-10-10 Thread Gregory Stark
"Tom Lane" <[EMAIL PROTECTED]> writes: > Adam PAPAI <[EMAIL PROTECTED]> writes: >> Usually our program dumps core several times a day, but the reason is >> unknown. All I know from the core file is the lines below. > > That failure is inside malloc, not PQmakeEmptyPQresult, and the odds > are ext

Re: [BUGS] BUG #3665: INSERT is not allowed in a non-volatile function

2007-10-10 Thread Tom Lane
"Evgeni" <[EMAIL PROTECTED]> writes: > On SPI_exec see erorr ERROR: INSERT is not allowed in a non-volatile > function You didn't show us your code, but somehow or other you're managing to pass read_only = true to the SPI execution code. regards, tom lane --

[BUGS] BUG #3666: Truncated Parameter in LDAP string when spaces contained

2007-10-10 Thread Yves
The following bug has been logged online: Bug reference: 3666 Logged by: Yves Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2.5 Operating system: LInux Description:Truncated Parameter in LDAP string when spaces contained Details: Hello, It is not possible t

[BUGS] BUG #3665: INSERT is not allowed in a non-volatile function

2007-10-10 Thread Evgeni
The following bug has been logged online: Bug reference: 3665 Logged by: Evgeni Email address: [EMAIL PROTECTED] PostgreSQL version: 8.1.7 Operating system: Linux Redhat 7.2 Description:INSERT is not allowed in a non-volatile function Details: I write function in c

Re: [BUGS] PQmakeEmptyPQresult makes my application dumps core?

2007-10-10 Thread Gregory Stark
"Adam PAPAI" <[EMAIL PROTECTED]> writes: > PostgreSQL version: (PostgreSQL) 7.4.7 Incidentally there have been 11 bug-fix releases to 7.4 since this one. Several of those cause crashes or data corruption and you would be well-advised to install 7.4.18 asap. Normally you don't need a dump/resto

Re: [BUGS] PQmakeEmptyPQresult makes my application dumps core?

2007-10-10 Thread Tom Lane
Adam PAPAI <[EMAIL PROTECTED]> writes: > Usually our program dumps core several times a day, but the reason is > unknown. All I know from the core file is the lines below. That failure is inside malloc, not PQmakeEmptyPQresult, and the odds are extremely high that the reason is some part of your

[BUGS] PQmakeEmptyPQresult makes my application dumps core?

2007-10-10 Thread Adam PAPAI
Adam PAPAI wooh (at) wooh (dot) hu System Configuration - Architecture: Intel(R) Xeon(TM) CPU 2.80GHz Operating System: Debian/GNU Linux i686 GNU/Linux PostgreSQL version: (PostgreSQL) 7.4.7 Compiler used: gcc 3.3.6 Problem description - Usua

Re: [BUGS] Provide a way to not ask for a password in psql

2007-10-10 Thread Peter Eisentraut
Euler Taveira de Oliveira wrote: > Martin Pitt wrote: > > For example, "psql -l" is a convenient > > method to check whether the postmaster is running at all, > > finished with startup and ready for connections. > > Why not just "pg_ctl status"? That doesn't check whether the server is actually an