Re: [BUGS] BUG #5038: WAL file is pending deletion in pg_xlog folder, this interferes with WAL archiving.

2009-09-07 Thread Heikki Linnakangas
Luke Koops wrote: > The following bug has been logged online: > > Bug reference: 5038 > Logged by: Luke Koops > Email address: luke.ko...@entrust.com > PostgreSQL version: 8.3.7 > Operating system: Windows 2003 Server Enterprise Edition > Description:WAL file is pendin

Odp: Re: [BUGS] BUG #5035: cast 'text' to 'name' doesnt work in plpgsqlfunction

2009-09-07 Thread Tomasz Karlik
>>> Alvaro Herrera 9/4/2009 7:23 PM >>> tkar...@ultimo.pl wrote: > Without casting function executes much slower: > > CREATE OR REPLACE FUNCTION table_exists(tblname text) RETURNS boolean AS ' > DECLARE > exists boolean; > BEGIN > SELECT 1 INTO exists FROM pg_class WHERE relname = name($1)

Re: [BUGS] BUG #5035: cast 'text' to 'name' doesnt work in plpgsqlfunction

2009-09-07 Thread Pavel Stehule
Hello 2009/9/7 Tomasz Karlik : > > Alvaro Herrera 9/4/2009 7:23 PM >>> > tkar...@ultimo.pl wrote: > >> Without casting function executes much slower: >> >> CREATE OR REPLACE FUNCTION table_exists(tblname text) RETURNS boolean AS ' >> DECLARE >> exists boolean; >> BEGIN >> SELECT 1 INTO e

Re: [BUGS] BUG #5035: cast 'text' to 'name' doesnt work in plpgsqlfunction

2009-09-07 Thread Pavel Stehule
2009/9/7 Pavel Stehule : > Hello > > 2009/9/7 Tomasz Karlik : >> >> > Alvaro Herrera 9/4/2009 7:23 PM >>> >> tkar...@ultimo.pl wrote: >> >>> Without casting function executes much slower: >>> >>> CREATE OR REPLACE FUNCTION table_exists(tblname text) RETURNS boolean AS ' >>> DECLARE >>> exists

Re: [BUGS] BUG #5038: WAL file is pending deletion in pg_xlog folder, this interferes with WAL archiving.

2009-09-07 Thread Tom Lane
Heikki Linnakangas writes: > Perhaps we should try to close the old WAL file sooner. There is zero hope of making that work. What we probably need to do is fix the code that scans pg_xlog so that it ignores files that are pending deletion. (I assume there's some way to find that out on Windows.

Re: [BUGS] BUG #5038: WAL file is pending deletion in pg_xlog folder, this interferes with WAL archiving.

2009-09-07 Thread Luke Koops
> -Original Message- > From: Tom Lane [mailto:t...@sss.pgh.pa.us] > Sent: Monday, September 07, 2009 1:17 PM > To: Heikki Linnakangas > Cc: Luke Koops; pgsql-bugs@postgresql.org > Subject: Re: [BUGS] BUG #5038: WAL file is pending deletion > in pg_xlog folder, this interferes with WAL archi