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 #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
On 29.8.2012. 21:02, Merlin Moncure wrote: > On Wed, Aug 29, 2012 at 10:44 AM, Chris Travers > wrote: > >> Again, the question is simply this: >> >> Are the table constraints for storage complete in themselves (and assuming >> full knowledge of all changes of internal data types) or are they >> e

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
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 complex); --This doesn't work as expected select * from bad >> where c is not null; > What do you consider to be "expected"? Ha

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
On 27.4.2012. 0:39, Tom Lane wrote: > > There is no supported method for changing the order of attributes in a > composite type, so I wonder exactly how you did step 4. If it involved > direct manipulation of the system catalogs, I would say this falls in > the category of "if you break it, you ge

[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
On 13.3.2012. 20:49, Merlin Moncure wrote: > I personally think it's an oversight. This was just discussed a > couple of days ago here: > http://postgresql.1045698.n5.nabble.com/Altering-a-table-with-a-rowtype-column-td5544844.html > > The server is blocking the alter-not-null-with-default because

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

2012-02-28 Thread Rikard Pavelic
On 28.2.2012. 15:01, Marti Raudsepp wrote: > On Sat, Feb 25, 2012 at 15:23, wrote: >> This works: >> alter table t1 add x float not null; > Peeking at the code, currently any modifications that cause a rewrite > of the original table are disallowed. > > Adding a nullable column without a default

[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