Re: [BUGS] BUG #2817: Mixing spi_prepare and spi_exec_query causes postgresql to terminate itself on bad argument types

2006-12-07 Thread Tom Lane
"Michael Andreen" <[EMAIL PROTECTED]> writes: > CREATE OR REPLACE FUNCTION crash() > RETURNS int4 AS > $BODY$$rv = spi_exec_query("SELECT 1"); > $query = spi_prepare('SELECT 1 WHERE 1 = $1','integer'); > return 1;$BODY$ > LANGUAGE 'plperl' VOLATILE; Thanks for the test case. This is not plper

Re: [BUGS] BUG #2811: Error determining param type in prepared statement of unused variable

2006-12-07 Thread Tom Lane
Ross Cohen <[EMAIL PROTECTED]> writes: > On Wed, Dec 06, 2006 at 05:55:32PM -0500, Tom Lane wrote: >> "Ross Cohen" <[EMAIL PROTECTED]> writes: >>> PREPARE demo (unknown) AS SELECT 1; >>> ERROR: could not determine data type of parameter $1 >> >> This doesn't seem like a bug to me. The parser nee

Re: [BUGS] BUG #2811: Error determining param type in prepared statement of unused variable

2006-12-07 Thread Ross Cohen
On Wed, Dec 06, 2006 at 05:55:32PM -0500, Tom Lane wrote: > "Ross Cohen" <[EMAIL PROTECTED]> writes: > > PREPARE demo (unknown) AS SELECT 1; > > ERROR: could not determine data type of parameter $1 > > This doesn't seem like a bug to me. The parser needs to be able to > resolve the types of any

Re: [BUGS] BUG #2812: Transaction is aborted after error

2006-12-07 Thread Alex_Piyevsky
Thank you for your help and prompt response. Regards, Alex -Original Message- From: Alvaro Herrera [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 5:43 PM To: Piyevsky, Alex Cc: pgsql-bugs@postgresql.org Subject: Re: [BUGS] BUG #2812: Transaction is aborted after error Alex

[BUGS] 8.2 bug: Mixing spi_prepare and spi_exec_query causes postgresql to terminate itself on bad argument types

2006-12-07 Thread Michael Andreen
Was playing around with the new release and changing some pl/perl functions to use the new spi_prepare and friends when I noticed postgresql terminating strangely, with no useful warnings at all, the log contained the following: Dec 7 16:58:28 [postgres] [7-1] LOG: database system is ready De

[BUGS] BUG #2813: missing RPM build dependency: tcl-devel

2006-12-07 Thread Markus Grabner
The following bug has been logged online: Bug reference: 2813 Logged by: Markus Grabner Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2 Operating system: SuSE Linux 10.0, kernel 2.6.13-15.12-default. i586 Description:missing RPM build dependency: tcl-devel De

[BUGS] BUG #2817: Mixing spi_prepare and spi_exec_query causes postgresql to terminate itself on bad argument types

2006-12-07 Thread Michael Andreen
The following bug has been logged online: Bug reference: 2817 Logged by: Michael Andreen Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2 Operating system: Gentoo Linux (unofficial postgresql 8.2 package) Description:Mixing spi_prepare and spi_exec_query cause

Re: [BUGS] BUG #2807: constraint violation

2006-12-07 Thread Tom Lane
"Ross Cohen" <[EMAIL PROTECTED]> writes: > Description:constraint violation Thanks for the report. I've applied a patch that I believe fixes this ... at least, it fixes Jeff Davis' test case. regards, tom lane ---(end of broadcast)

Re: [BUGS] BUG #2816: Logfile difference in timestamp between Windows and Linux

2006-12-07 Thread Tom Lane
"Joost Karaaijeveld" <[EMAIL PROTECTED]> writes: > Printing a timestamp using '%t%' in Windows omits the timezone in the > logfile. In Linux the timezone is printed. Either make the two the same by > default or make it configurable so that the user can make them the same. The zone name available f

[BUGS] BUG #2816: Logfile difference in timestamp between Windows and Linux

2006-12-07 Thread Joost Karaaijeveld
The following bug has been logged online: Bug reference: 2816 Logged by: Joost Karaaijeveld Email address: [EMAIL PROTECTED] PostgreSQL version: 8.1.5 Operating system: Windows 2000 / Linux Debian Etch Description:Logfile difference in timestamp between Windows and Li