Re: [BUGS] BUG #7943: plpgsql parsing bug

2013-03-15 Thread Rikard Pavelic
Ok, that works. Another thing that was strange is that when I changed declare _t1 s; to declare _t1 s[]; parsing passed, but of course it blew up at runtime. Anyway, thanx for the workaround. I'll see if it's faster comparing fields using record or as I do it currently. Regards, Rikard

[BUGS] BUG #7943: plpgsql parsing bug

2013-03-14 Thread rikard
The following bug has been logged on the website: Bug reference: 7943 Logged by: Rikard Pavelic Email address: rik...@ngs.hr PostgreSQL version: 9.2.1 Operating system: Windows 7 Description: ERROR: "_t1" is not a scalar variable LINE 12: for _i1, _i2, _t1

[BUGS] BUG #7525: Deferred unique index with predicate

2012-09-08 Thread rikard . pavelic
The following bug has been logged on the website: Bug reference: 7525 Logged by: Rikard Pavelic Email address: rikard.pave...@zg.htnet.hr PostgreSQL version: 9.1.2 Operating system: Windows 7 Description: Is there a way in Postgres to create a unique constraint with

Re: [BUGS] BUG #6489: Alter table with composite type/table

2012-08-31 Thread Rikard Pavelic
country *country; //this will create surrogate country_code field in address, //function country(address) which returns country //and it would be great if it could maintain relationship with country } Currently Postgres can't declare NOT NULL for town and reference from address to country. I would be happy if direction Postgres takes would allow design like this to be enforced by database. Regards, Rikard -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

Re: [BUGS] BUG #7485: 9.2 beta3 libxml2 can't be loaded on Windows

2012-08-15 Thread Rikard Pavelic
On 15.8.2012. 3:54, Craig Ringer wrote: > On 08/14/2012 11:42 PM, Rikard Pavelic wrote: >> On 8.8.2012. 13:30, Craig Ringer wrote: >>> On 08/08/2012 06:24 PM, rikard.pave...@zg.htnet.hr wrote: >>>> The following bug has been logged on the website: >>>> &g

Re: [BUGS] BUG #7485: 9.2 beta3 libxml2 can't be loaded on Windows

2012-08-14 Thread Rikard Pavelic
On 8.8.2012. 13:30, Craig Ringer wrote: > On 08/08/2012 06:24 PM, rikard.pave...@zg.htnet.hr wrote: >> The following bug has been logged on the website: >> >> Bug reference: 7485 >> Logged by: Rikard Pavelic >> Email address: rikard.pave...@

[BUGS] BUG #7485: 9.2 beta3 libxml2 can't be loaded on Windows

2012-08-08 Thread rikard . pavelic
The following bug has been logged on the website: Bug reference: 7485 Logged by: Rikard Pavelic Email address: rikard.pave...@zg.htnet.hr PostgreSQL version: Unsupported/Unknown Operating system: Windows Description: This is still an issue as reported in http

Re: [BUGS] BUG #6701: IS NOT NULL doesn't work on complex composites

2012-06-20 Thread Rikard Pavelic
On 21.6.2012. 6:03, Pavel Stehule wrote: > 2012/6/21 Rikard Pavelic : >> On 20.6.2012. 21:10, Tom Lane wrote: >>> rikard.pave...@zg.htnet.hr writes: >>>> create type t AS (i int); create type complex as (t t, i int); create >>>> table bad(i int, c comple

Re: [BUGS] BUG #6701: IS NOT NULL doesn't work on complex composites

2012-06-20 Thread Rikard Pavelic
x values(1,null); insert into x values(2,(1,null)); insert into x values(3,(1,2)); --first row - ok select * from x where c is null; --last row - ok select * from x where c is not null; --unexpected result again select c is null from x; I must admit I was expecting true null false Regards, R

Re: [BUGS] BUG #6701: IS NOT NULL doesn't work on complex composites

2012-06-20 Thread Rikard Pavelic
On 20.6.2012. 20:55, Pavel Stehule wrote: > Hello > > it is not a bug - see > http://archives.postgresql.org/pgsql-hackers/2009-07/msg01525.php > > Regards > > Pavel Stehule > I found that in documentation after reporting bug. I'm sorry for not searching some more, but didn't know where to look ex

[BUGS] BUG #6701: IS NOT NULL doesn't work on complex composites

2012-06-20 Thread rikard . pavelic
The following bug has been logged on the website: Bug reference: 6701 Logged by: Rikard Pavelic Email address: rikard.pave...@zg.htnet.hr PostgreSQL version: 9.1.3 Operating system: Windows 7 Description: create type t AS (i int); create type complex as (t t, i int

Re: [BUGS] BUG #6618: incorrect restore for composite columns when order changes

2012-04-26 Thread Rikard Pavelic
clone the database, I let our tool build it. It built types with different order because our schema changed in the meantime. Regards, Rikard -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

[BUGS] BUG #6618: incorrect restore for composite columns when order changes

2012-04-26 Thread rikard . pavelic
The following bug has been logged on the website: Bug reference: 6618 Logged by: Rikard Pavelic Email address: rikard.pave...@zg.htnet.hr PostgreSQL version: 9.1.3 Operating system: Windows 7 Description: We've run into another issue with composite types. I'

Re: [BUGS] BUG #6489: Alter table with composite type/table

2012-03-14 Thread Rikard Pavelic
While I'm making up TODO's, my favorite one: support recursive types. Regards, Rikard -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

Re: [BUGS] BUG #6489: Alter table with composite type/table

2012-02-28 Thread Rikard Pavelic
. If you > want to store composite types in tables, I think you're better off > using CREATE TYPE/ALTER TYPE. I guess this falls under advanced type usage (like recursive types - which can be used for lists) which are not even recognized as important ;( Regards, Rikard -- Sent via pgsql

[BUGS] BUG #6489: Alter table with composite type/table

2012-02-25 Thread rikard . pavelic
The following bug has been logged on the website: Bug reference: 6489 Logged by: Rikard Pavelic Email address: rikard.pave...@zg.htnet.hr PostgreSQL version: 9.1.2 Operating system: Windows 7 Description: I'm trying to push types in Postgres and have run into

[BUGS] BUG #6058: psql password prompt

2011-06-14 Thread Rikard Pavelic
The following bug has been logged online: Bug reference: 6058 Logged by: Rikard Pavelic Email address: rikard.pave...@zg.htnet.hr PostgreSQL version: 9.1 beta2 Operating system: Windows 7 64 Description:psql password prompt Details: psql doesn't hide passwo

[BUGS] BUG #6046: select current_date crashes postgres

2011-05-31 Thread Rikard Pavelic
The following bug has been logged online: Bug reference: 6046 Logged by: Rikard Pavelic Email address: rikard.pave...@zg.htnet.hr PostgreSQL version: 9.1 beta 1 Operating system: Windows 7 64bit Description:select current_date crashes postgres Details: select

Re: [BUGS] BUG #5982: recursive type crashes postgres

2011-04-15 Thread Rikard Pavelic
On 15.4.2011 22:49, Kevin Grittner wrote: > Rikard Pavelic wrote: >> On 15.4.2011 21:06, Tom Lane wrote: >>> The former. >>> >>> regression=# CREATE TYPE turtle AS >>> ( >>> name varchar >>> ); >>> CREATE TYPE >

Re: [BUGS] BUG #5982: recursive type crashes postgres

2011-04-15 Thread Rikard Pavelic
On 15.4.2011 21:06, Tom Lane wrote: > The former. > > regression=# CREATE TYPE turtle AS > ( > name varchar > ); > CREATE TYPE > regression=# ALTER TYPE turtle ADD ATTRIBUTE offspring turtle; > ERROR: composite type turtle cannot be made a member of itself > regression=# > >

[BUGS] BUG #5982: recursive type crashes postgres

2011-04-15 Thread Rikard Pavelic
The following bug has been logged online: Bug reference: 5982 Logged by: Rikard Pavelic Email address: rikard.pave...@zg.htnet.hr PostgreSQL version: 9.1.alpha5 Operating system: Windows XP SP3 Description:recursive type crashes postgres Details: CREATE TYPE turtle

[BUGS] BUG #5970: intersect and collation on types

2011-04-10 Thread Rikard Pavelic
The following bug has been logged online: Bug reference: 5970 Logged by: Rikard Pavelic Email address: rikard.pave...@zg.htnet.hr PostgreSQL version: 9.1.alpha5 Operating system: Windows XP SP3 Description:intersect and collation on types Details: create table

[BUGS] BUG #4892: postmaster died and didn't restart

2009-06-28 Thread Rikard Pavelic
The following bug has been logged online: Bug reference: 4892 Logged by: Rikard Pavelic Email address: rikard.pave...@zg.htnet.hr PostgreSQL version: 8.4 beta2 Operating system: Windows XP SP3 Description:postmaster died and didn't restart Details: log of dea