[BUGS] Fwd: plpgsql plan caching allowing invalid data to enter table?

2013-07-09 Thread Joe Van Dyk
It's looking like I can use a plpgsql function to insert data into a table that violates a domain constraint. Is this a known problem? Session 1: create domain my_domain text check (length(value) > 2); create table my_table (name my_domain); create function f(text) returns void as $$ declare my_

[BUGS] BUG #8291: postgres_fdw does not re-read USER MAPING after change.

2013-07-09 Thread lalbin
The following bug has been logged on the website: Bug reference: 8291 Logged by: Lloyd Albin Email address: lal...@fhcrc.org PostgreSQL version: Unsupported/Unknown Operating system: Windows 7 (64-bit) Description: Tested on Windows 7 (64-bit) Postgres 9.3.0 Beta 2 -

Re: [BUGS] BUG #8290: broken/unexpected locking behavior

2013-07-09 Thread Alvaro Herrera
Jamey Poirier escribió: > > Thank you Alvaro. Yes, this explains it. > It doesn't help to fix it but at least I know now that it's a known "feature". > I'll have to see about coming up with a work-around as we likely won't get to > 9.3 anytime soon. Perhaps you can use FOR SHARE instead of FOR

Re: [BUGS] BUG #8289: pg_stat_statements incorrect query text when executing multiple queries in a single PQexec

2013-07-09 Thread Tom Lane
potapov.dmi...@gmail.com writes: > The testcase runs five UPDATE commands with two PQexec calls. > First PQexec call runs: "UPDATE t1 SET a=101 WHERE id=0; UPDATE t1 SET a=102 > WHERE id=1; UPDATE t1 SET a=103 WHERE id=2" > Second PQexec call runs: "UPDATE t2 SET b=1 where a=0; UPDATE t2 SET a=2 >

Re: [BUGS] BUG #8290: broken/unexpected locking behavior

2013-07-09 Thread Jamey Poirier
Thank you Alvaro. Yes, this explains it. It doesn't help to fix it but at least I know now that it's a known "feature". I'll have to see about coming up with a work-around as we likely won't get to 9.3 anytime soon. Thank you! -Original Message- From: pgsql-bugs-ow...@postgresql.org [m

Re: [BUGS] BUG #8290: broken/unexpected locking behavior

2013-07-09 Thread Alvaro Herrera
pgn...@gmail.com escribió: > I sent the following information to pgsql-general to ask if it is expected > locking behavior. The only responses that I got said that the behavior is > reproducible on 9.1 and 9.3 beta 2. > Nobody said that this is expected locking behavior and I believe it to be a >

Re: [BUGS] BUG #8290: broken/unexpected locking behavior

2013-07-09 Thread pg noob
Doing that just moves the problem from the time of the UPDATE to the time of the COMMIT. It is still possible to get a deadlock and I'm not sure how making it deferrable helps in this case. You can still end up with a deadlock like this: CON1: BEGIN; CON1: SELECT * FROM A WHERE id = 1 FOR UPDATE;

Re: [BUGS] BUG #8290: broken/unexpected locking behavior

2013-07-09 Thread bricklen
On Tue, Jul 9, 2013 at 9:02 AM, wrote: > The following bug has been logged on the website: > > Bug reference: 8290 > Logged by: pgnoob > Email address: pgn...@gmail.com > PostgreSQL version: 8.4.13 > Operating system: CentOS Linux > Description: > > I experienced a db deadloc

[BUGS] BUG #8290: broken/unexpected locking behavior

2013-07-09 Thread pgnube
The following bug has been logged on the website: Bug reference: 8290 Logged by: pgnoob Email address: pgn...@gmail.com PostgreSQL version: 8.4.13 Operating system: CentOS Linux Description: I experienced a db deadlock. After tracking down the problem I attributed it

[BUGS] BUG #8289: pg_stat_statements incorrect query text when executing multiple queries in a single PQexec

2013-07-09 Thread potapov . dmitry
The following bug has been logged on the website: Bug reference: 8289 Logged by: Dmitriy Potapov Email address: potapov.dmi...@gmail.com PostgreSQL version: 9.2.4 Operating system: Scientific Linux 6.3 Description: pg_stat_statements view contains incorrectly normali

[BUGS] BUG #8288: 9.3.0Beta2 - Windows Installer bug #7738 still open

2013-07-09 Thread tgauss
The following bug has been logged on the website: Bug reference: 8288 Logged by: Thomas Gauss Email address: tga...@wolfsysteme.de PostgreSQL version: Unsupported/Unknown Operating system: Windows 7 64bit Description: Having data directory on drive d:\database\data-9.