Re: [GENERAL] Problem with records that disappear.

2013-01-14 Thread Condor
On 2013-01-14 11:41, John R Pierce wrote: On 1/14/2013 1:34 AM, Condor wrote: It's a standalone statements without BEGIN TRANSACTION. An update is easy to explain with another but insert with missing row and there is no DELETE command in whole code and no one other have access to server. No any

Re: [GENERAL] Problem with records that disappear.

2013-01-14 Thread John R Pierce
On 1/14/2013 1:34 AM, Condor wrote: It's a standalone statements without BEGIN TRANSACTION. An update is easy to explain with another but insert with missing row and there is no DELETE command in whole code and no one other have access to server. No any error logs, only access log system insert

Re: [GENERAL] Problem with records that disappear.

2013-01-14 Thread Condor
On 2013-01-14 10:45, John R Pierce wrote: On 1/14/2013 12:15 AM, Condor wrote: When I call the function from php everything it's seems to work, but some time modify records just disappear. I don't have any ideas for the moment what is the problem in my postgresql or in my php code. I'm sure t

Re: [GENERAL] Problem with records that disappear.

2013-01-14 Thread John R Pierce
On 1/14/2013 12:15 AM, Condor wrote: IF aid > 0 THEN SELECT INTO ids id FROM table_3 WHERE x = x; IF aid IS NULL THEN oh, I see a logical error here too... if "aid" /is/ in fact NULL then that inner code will never be executed, because NULL can not be > 0, it has no value. F

Re: [GENERAL] Problem with records that disappear.

2013-01-14 Thread Condor
On 2013-01-14 10:53, Vlad Arkhipov wrote: On 01/14/2013 05:15 PM, Condor wrote: Hello, from some time I have a very strange problem with my postgresql 9.2.2 64bit. I make a few changes with an plp function: BEGIN   UPDATE table SET X = X where id = aid;   UPDATE table_2 SET Y=Y where id = a

Re: [GENERAL] Problem with records that disappear.

2013-01-14 Thread Vlad Arkhipov
On 01/14/2013 05:15 PM, Condor wrote: Hello, from some time I have a very strange problem with my postgresql 9.2.2 64bit. I make a few changes with an plp function: BEGIN UPDATE table SET X = X where id = aid; UPDATE table_2 SET Y=Y where id = aid; IF aid > 0 THEN SELECT INTO ids id

Re: [GENERAL] Problem with records that disappear.

2013-01-14 Thread John R Pierce
On 1/14/2013 12:45 AM, John R Pierce wrote: On 1/14/2013 12:15 AM, Condor wrote: When I call the function from php everything it's seems to work, but some time modify records just disappear. I don't have any ideas for the moment what is the problem in my postgresql or in my php code. I'm sure

Re: [GENERAL] Problem with records that disappear.

2013-01-14 Thread John R Pierce
On 1/14/2013 12:15 AM, Condor wrote: When I call the function from php everything it's seems to work, but some time modify records just disappear. I don't have any ideas for the moment what is the problem in my postgresql or in my php code. I'm sure there was a recording was made. I run in mi

[GENERAL] Problem with records that disappear.

2013-01-14 Thread Condor
Hello, from some time I have a very strange problem with my postgresql 9.2.2 64bit. I make a few changes with an plp function: BEGIN UPDATE table SET X = X where id = aid; UPDATE table_2 SET Y=Y where id = aid; IF aid > 0 THEN SELECT INTO ids id FROM table_3 WHERE x = x; IF aid I