Re: [PERFORM] pgsql do not handle NULL constants in the view

2008-08-20 Thread Sergey Hripchenko
Hripchenko Cc: pgsql-performance@postgresql.org Subject: Re: [PERFORM] pgsql do not handle NULL constants in the view Sergey Hripchenko <[EMAIL PROTECTED]> writes: > CREATE OR REPLACE VIEW bar AS > SELECT * > FROM ( > ( > SELECT calldate, duration, billsec, > ge

[PERFORM] pgsql do not handle NULL constants in the view

2008-08-20 Thread Sergey Hripchenko
Hi all, Looks like I found a bug with views optimization: For example create a test view: CREATE OR REPLACE VIEW bar AS SELECT * FROM ( ( SELECT calldate, duration, billsec, get_asterisk_cdr_caller_id(accountcode) AS caller_id FROM asterisk_cdr ) UNION ALL ( SELE

Re: [PERFORM] pgsql do not handle NULL constants in the view

2008-08-20 Thread Sergey Hripchenko
pm -qa | grep postgres postgresql-8.2.9-1.fc7 postgresql-libs-8.2.9-1.fc7 postgresql-server-8.2.9-1.fc7 postgresql-contrib-8.2.9-1.fc7 postgresql-devel-8.2.9-1.fc7 From: Sergey Hripchenko Sent: Wednesday, August 20, 2008 1:17 PM To: 'pgsql-performance@postgresql.o