Re: [BUGS] BUG #4638: Bug with Geometry in Array

2009-03-03 Thread Dr. Björn Weitzig
Thank you very much! I made several tests, and (with postgresql-8.4dev-arraydim.jdbc3.jar) it worked. Greetings, Bjoern Weitzig Kris Jurka wrote: > On Mon, 2 Mar 2009, "Dr. Björn Weitzig" wrote: >> I can't find any "modified JDBC driver", only the "JDBC extension" >> postgis.jar (your link), whi

[BUGS] BUG #4688: Bug in cache.

2009-03-03 Thread Oleg
The following bug has been logged online: Bug reference: 4688 Logged by: Oleg Email address: sero...@gmail.com PostgreSQL version: last stable Operating system: CentOS Description:Bug in cache. Details: Demo sql: ROLLBACK; BEGIN; CREATE TABLE bug_composite_type (

Re: [BUGS] BUG #4688: Bug in cache.

2009-03-03 Thread Heikki Linnakangas
Oleg wrote: CREATE CAST (tmp_table AS composite_ad_texts) WITHOUT FUNCTION AS ASSIGNMENT; "WITHOUT FUNCTION" can only be used when both types are binary compatible. You might think that two composite types with the same fields are, but they're not: we store the OID of the composite type i

Re: [BUGS] BUG #4688: Bug in cache.

2009-03-03 Thread Tom Lane
Heikki Linnakangas writes: > Oleg wrote: >> CREATE CAST (tmp_table AS composite_ad_texts) >> WITHOUT FUNCTION AS ASSIGNMENT; > "WITHOUT FUNCTION" can only be used when both types are binary > compatible. You might think that two composite types with the same > fields are, but they're not: we st

Re: [BUGS] BUG #4688: Bug in cache.

2009-03-03 Thread Heikki Linnakangas
Tom Lane wrote: Heikki Linnakangas writes: Oleg wrote: CREATE CAST (tmp_table AS composite_ad_texts) WITHOUT FUNCTION AS ASSIGNMENT; "WITHOUT FUNCTION" can only be used when both types are binary compatible. You might think that two composite types with the same fields are, but they're not

Re: [BUGS] BUG #4688: Bug in cache.

2009-03-03 Thread Tom Lane
Heikki Linnakangas writes: > Tom Lane wrote: >> Although this qualifies as pilot error (superusers are expected to know >> what they're doing), should we attempt to prevent the case? > We can't detect binary-incompatibility in general, so I presume you > meant just for the case of composite type

Re: [BUGS] BUG #4688: Bug in cache.

2009-03-03 Thread Guillaume Smet
On Tue, Mar 3, 2009 at 4:37 PM, Tom Lane wrote: > Heikki Linnakangas writes: >> I believe the command has been like that for a long time, and this is >> the first time someone managed to shoot one's foot. > > True.  Maybe it's not worth the trouble. IMHO, the consequences are far from being negl

Re: [BUGS] BUG #4688: Bug in cache.

2009-03-03 Thread Heikki Linnakangas
Tom Lane wrote: Heikki Linnakangas writes: Tom Lane wrote: Although this qualifies as pilot error (superusers are expected to know what they're doing), should we attempt to prevent the case? We can't detect binary-incompatibility in general, so I presume you meant just for the case of compo

Re: [BUGS] BUG #4688: Bug in cache.

2009-03-03 Thread Tom Lane
Heikki Linnakangas writes: > If we go down that path, how far do we go? We also know that two enums > are never binary-compatible, right? Composite type and a user-defined > base type? Hardly, unless you're doing something very hacky... > Disallowing binary casts when any composite types or enu