mirror of
https://github.com/postgres/postgres.git
synced 2025-10-29 22:49:41 +03:00
Avoid naming conflict between transactions.sql and namespace.sql.
Commits 681d9e462 et al added a test case in namespace.sql that
implicitly relied on there not being a table "public.abc".
However, the concurrently-run transactions.sql test creates precisely
such a table, so with the right timing you'd get a failure.
Creating a table named as generically as "abc" in a common schema
seems like bad practice, so fix this by changing the name of
transactions.sql's table. (Compare 2cf8c7aa4.)
Marina Polyakova
Discussion: https://postgr.es/m/80d0201636665d82185942e7112257b4@postgrespro.ru
This commit is contained in:
@@ -571,10 +571,10 @@ drop function inverse(int);
|
|||||||
-- performed in the aborted subtransaction
|
-- performed in the aborted subtransaction
|
||||||
begin;
|
begin;
|
||||||
savepoint x;
|
savepoint x;
|
||||||
create table abc (a int);
|
create table trans_abc (a int);
|
||||||
insert into abc values (5);
|
insert into trans_abc values (5);
|
||||||
insert into abc values (10);
|
insert into trans_abc values (10);
|
||||||
declare foo cursor for select * from abc;
|
declare foo cursor for select * from trans_abc;
|
||||||
fetch from foo;
|
fetch from foo;
|
||||||
a
|
a
|
||||||
---
|
---
|
||||||
@@ -587,11 +587,11 @@ fetch from foo;
|
|||||||
ERROR: cursor "foo" does not exist
|
ERROR: cursor "foo" does not exist
|
||||||
commit;
|
commit;
|
||||||
begin;
|
begin;
|
||||||
create table abc (a int);
|
create table trans_abc (a int);
|
||||||
insert into abc values (5);
|
insert into trans_abc values (5);
|
||||||
insert into abc values (10);
|
insert into trans_abc values (10);
|
||||||
insert into abc values (15);
|
insert into trans_abc values (15);
|
||||||
declare foo cursor for select * from abc;
|
declare foo cursor for select * from trans_abc;
|
||||||
fetch from foo;
|
fetch from foo;
|
||||||
a
|
a
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -358,10 +358,10 @@ drop function inverse(int);
|
|||||||
begin;
|
begin;
|
||||||
|
|
||||||
savepoint x;
|
savepoint x;
|
||||||
create table abc (a int);
|
create table trans_abc (a int);
|
||||||
insert into abc values (5);
|
insert into trans_abc values (5);
|
||||||
insert into abc values (10);
|
insert into trans_abc values (10);
|
||||||
declare foo cursor for select * from abc;
|
declare foo cursor for select * from trans_abc;
|
||||||
fetch from foo;
|
fetch from foo;
|
||||||
rollback to x;
|
rollback to x;
|
||||||
|
|
||||||
@@ -371,11 +371,11 @@ commit;
|
|||||||
|
|
||||||
begin;
|
begin;
|
||||||
|
|
||||||
create table abc (a int);
|
create table trans_abc (a int);
|
||||||
insert into abc values (5);
|
insert into trans_abc values (5);
|
||||||
insert into abc values (10);
|
insert into trans_abc values (10);
|
||||||
insert into abc values (15);
|
insert into trans_abc values (15);
|
||||||
declare foo cursor for select * from abc;
|
declare foo cursor for select * from trans_abc;
|
||||||
|
|
||||||
fetch from foo;
|
fetch from foo;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user