mirror of
https://github.com/postgres/postgres.git
synced 2025-12-12 02:37:31 +03:00
exec_eval_simple_expr() needs to do CommandCounterIncrement() not just
GetTransactionSnapshot() to ensure ActiveSnapshot advances properly. Sigh. Extend regression test so it reveals this error too.
This commit is contained in:
@@ -2089,5 +2089,17 @@ select sp_add_user('user2');
|
||||
-1
|
||||
(1 row)
|
||||
|
||||
select sp_add_user('user3');
|
||||
sp_add_user
|
||||
-------------
|
||||
3
|
||||
(1 row)
|
||||
|
||||
select sp_add_user('user3');
|
||||
sp_add_user
|
||||
-------------
|
||||
-1
|
||||
(1 row)
|
||||
|
||||
drop function sp_add_user(text);
|
||||
drop function sp_id_user(text);
|
||||
|
||||
@@ -1802,6 +1802,8 @@ end$$ language plpgsql;
|
||||
select sp_add_user('user1');
|
||||
select sp_add_user('user2');
|
||||
select sp_add_user('user2');
|
||||
select sp_add_user('user3');
|
||||
select sp_add_user('user3');
|
||||
|
||||
drop function sp_add_user(text);
|
||||
drop function sp_id_user(text);
|
||||
|
||||
Reference in New Issue
Block a user