Re: [BUGS] BUG #1553: Function arguments and table fields

2005-03-20 Thread Neil Conway
Dan Black wrote: Need to rename function parameters, so that their names and table fields names are unmatched. I don't really see a way to make the error any more obvious in the current pl/pgsql implementation, unfortunately. -Neil ---(end of broadcast)--

Re: [BUGS] pl/pgsql doesn't load

2005-03-20 Thread Neil Conway
David B. wrote: 8.0.1 doesn't compile to include plpgsql.o so I can't createlang pl/pgsql. The 8.0.1 compile does create a plpgsql.so; it is installed under $prefix/lib. Why don't you guys provide rpms for the major distributions anyway? http://www.postgresql.org/ftp/binary/v8.0.1/linux/rpms/ -Ne

Re: [BUGS] pl/pgsql doesn't load

2005-03-20 Thread Alvaro Herrera
On Sat, Mar 19, 2005 at 11:21:54PM -0700, David B. wrote: > 8.0.1 doesn't compile to include plpgsql.o so I can't createlang pl/pgsql. I think you have misidentified your problem. > Why don't you guys provide rpms for the major distributions anyway? > I'm using mandrake and because you don't prov

[BUGS] BUG #1552: massive performance hit between 7.4 and 8.0.1

2005-03-20 Thread Brian O'Reilly
The following bug has been logged online: Bug reference: 1552 Logged by: Brian O'Reilly Email address: [EMAIL PROTECTED] PostgreSQL version: 8.0.1 Operating system: Linux 2.6.11 Description:massive performance hit between 7.4 and 8.0.1 Details: When doing a lot of i

Re: [BUGS] BUG #1546: Temp table isn't deleted at the end of a transaction / ON COMMIT DROP has no effect

2005-03-20 Thread Oliver Siegmar
On Friday 18 March 2005 14:29, Stephan Szabo wrote: > Given the error message, this seems to be the whole plpgsql caches query > plans but we don't invalidate those plans when there are schema changes. I already tried to execute the 'CREATE TEMP TABLE' statement using EXECUTE to avoid cache probl

{Spam?} Re: [BUGS] Possible temp table bug in PostgreSQL 7.4.7 / 8.0.1

2005-03-20 Thread Oliver Siegmar
On Friday 18 March 2005 18:08, Bruce Momjian wrote: > Uh, have you read the FAQ item about plpgsql and temporary tables? Doesn't seems like, eh? ;-) ...sorry for the not rtfm. ---(end of broadcast)--- TIP 9: the planner will ignore your desire to c

[BUGS] pl/pgsql doesn't load

2005-03-20 Thread David B.
8.0.1 doesn't compile to include plpgsql.o so I can't createlang pl/pgsql. Why don't you guys provide rpms for the major distributions anyway? I'm using mandrake and because you don't provide rpms I have to use the --without readline and zlib commands just to get it to compile. I can't find a m

[BUGS] BUG #1553: Function arguments and table fields

2005-03-20 Thread Dan Black
The following bug has been logged online: Bug reference: 1553 Logged by: Dan Black Email address: [EMAIL PROTECTED] PostgreSQL version: 8.0.1 Operating system: MS Windows 2000 sp4 Description:Function arguments and table fields Details: 1) Here is simple function C

Re: [BUGS] BUG #1517: SQL interval syntax is accepted by the parser,

2005-03-20 Thread Tom Lane
Roy Badami <[EMAIL PROTECTED]> writes: > ... but all of them have (in ANSI SQL) disitinct data types. They are distinct types, or at least different typmods, in Postgres as well. regards, tom lane ---(end of broadcast)--- TI

Re: [BUGS] BUG #1517: SQL interval syntax is accepted by the parser,

2005-03-20 Thread Tom Lane
Bruce Momjian writes: > I guess my point is that we should allow: > select interval '1' day '1' hour > as SQL standard Where do you get that that's in the SQL standard? What is in the standard is ::= INTERVAL [ ] ::= { | }

Re: [BUGS] BUG #1517: SQL interval syntax is accepted by the parser,

2005-03-20 Thread Tom Lane
Bruce Momjian writes: > I am wondering why we allow the 'interval' data type specification to be > after the string. Because that's what the standard demands. Please don't muddy the waters by introducing yet more nonstandard syntax into the discussion. regards, tom lane

Re: [BUGS] BUG #1517: SQL interval syntax is accepted by the parser,

2005-03-20 Thread Roy Badami
Roy> It would be Roy>INTERVAL '1 1' DAY TO HOUR Actually, it would be any one of the following: INTERVAL '1 1' DAY TO HOUR INTERVAL '1 1:00' DAY TO MINUTE INTERVAL '1 1:00:00' DAY TO SECOND INTERVAL '25' HOUR INTERVAL '25:00' HOUR TO MINUTE INTERVAL '25:00:00' HOUR

Re: [BUGS] BUG #1517: SQL interval syntax is accepted by the parser,

2005-03-20 Thread Roy Badami
Bruce> I guess my point is that we should allow: Bruce> select interval '1' day '1' hour Bruce> as SQL standard and equavalent to: Ah, I think you're misunderstanding what the SQL standard interval literal syntax looks like. It would be INTERVAL '1 1' DAY TO HOUR Essential

Re: [BUGS] BUG #1517: SQL interval syntax is accepted by the parser,

2005-03-20 Thread Bruce Momjian
Roy Badami wrote: > Bruce>select interval day to second '1 day 1 hour' > > Bruce> However, we don't support that syntax, only the one with > Bruce> the specification after. > > Is that valid ANSI SQL? I guess my point is that we should allow: select interval '1' day '1'

Re: [BUGS] BUG #1517: SQL interval syntax is accepted by the parser,

2005-03-20 Thread Roy Badami
Bruce> test=> select timestamp with time zone '2004-01-01'; Also, FWIW, according to the postgres doc this is a postgresism. The 'with time zone' clause never occurs in an ANSI timestamp literal; whether it is a timestamp or a timestamp with time zone depends on whether a time zone spe

Re: [BUGS] BUG #1517: SQL interval syntax is accepted by the parser,

2005-03-20 Thread Roy Badami
Bruce> somehow. Right now we use the clause after the string as Bruce> the date type specification, and I see you saying that the Bruce> data value specification has to after the string. Is that Bruce> correct? Well, that's what 'A guide to the SQL standard' gives as the syntax f

Re: [BUGS] BUG #1517: SQL interval syntax is accepted by the parser,

2005-03-20 Thread Bruce Momjian
Roy Badami wrote: > Bruce>select interval day to second '1 day 1 hour' > > Bruce> However, we don't support that syntax, only the one with > Bruce> the specification after. > > Is that valid ANSI SQL? No idea. It just seemed like the data type specification and the data value s

Re: [BUGS] BUG #1517: SQL interval syntax is accepted by the parser,

2005-03-20 Thread Bruce Momjian
Roy Badami wrote: > Tom> Feel like hacking the code? > > Hmm, in principle I might take a look some time; in reality it's > unlikely I'll have time any time soon... > > There are some design issues involved, though. If you have the type > modifier, do you isnist on SQL syntax in the string?

Re: [BUGS] BUG #1517: SQL interval syntax is accepted by the parser,

2005-03-20 Thread Roy Badami
Bruce> select interval day to second '1 day 1 hour' Bruce> However, we don't support that syntax, only the one with Bruce> the specification after. Is that valid ANSI SQL? -roy ---(end of broadcast)--- TIP 9: the planner will