pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Clean up duplicate role and schema names in regression tests.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Clean up duplicate role and schema names in regression tests.
@ 2018-03-15 18:00  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2018-03-15 18:00 UTC (permalink / raw)
  To: pgsql-committers

Clean up duplicate role and schema names in regression tests.

Since these names are global, using the same ones in different regression
tests creates a hazard of test failures if any two such scripts run
concurrently.  Let's establish a policy of not doing that.  In the cases
where a conflict existed, I chose to rename both sides: in principle one
script or the other could've been left in possession of the common name,
but that seems to just invite more trouble of the same sort.

There are a number of places where scripts are using names that seem
unduly generic, but in the absence of actual conflicts I left them alone.

In addition, fix insert.sql's use of "someone_else" as a role name.
That's a flat out violation of longstanding project policy, so back-patch
that change to v10 where the usage appeared.  The rest of this is just
future-proofing, as no two of these scripts are actually run concurrently
in the existing parallel_schedule.

Conflicts of schema-qualified names also exist, but will be dealt with
separately.

Discussion: https://postgr.es/m/4627.1521070268@sss.pgh.pa.us

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c484134a53d3b1a82449305b0f0710f604f8e8cc

Modified Files
--------------
src/test/regress/expected/insert.out | 18 +++++++++---------
src/test/regress/sql/insert.sql      | 18 +++++++++---------
2 files changed, 18 insertions(+), 18 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Clean up duplicate role and schema names in regression tests.
@ 2018-03-15 18:00  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2018-03-15 18:00 UTC (permalink / raw)
  To: pgsql-committers

Clean up duplicate role and schema names in regression tests.

Since these names are global, using the same ones in different regression
tests creates a hazard of test failures if any two such scripts run
concurrently.  Let's establish a policy of not doing that.  In the cases
where a conflict existed, I chose to rename both sides: in principle one
script or the other could've been left in possession of the common name,
but that seems to just invite more trouble of the same sort.

There are a number of places where scripts are using names that seem
unduly generic, but in the absence of actual conflicts I left them alone.

In addition, fix insert.sql's use of "someone_else" as a role name.
That's a flat out violation of longstanding project policy, so back-patch
that change to v10 where the usage appeared.  The rest of this is just
future-proofing, as no two of these scripts are actually run concurrently
in the existing parallel_schedule.

Conflicts of schema-qualified names also exist, but will be dealt with
separately.

Discussion: https://postgr.es/m/4627.1521070268@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fb7db40ad26c3384f81d471442743076ade3f82a

Modified Files
--------------
src/test/regress/expected/alter_generic.out    | 306 ++++++-------
src/test/regress/expected/alter_table.out      |  10 +-
src/test/regress/expected/create_procedure.out |  12 +-
src/test/regress/expected/create_view.out      |   2 +-
src/test/regress/expected/identity.out         |   8 +-
src/test/regress/expected/insert.out           |  18 +-
src/test/regress/expected/namespace.out        |  36 +-
src/test/regress/expected/privileges.out       | 598 ++++++++++++-------------
src/test/regress/expected/rolenames.out        |   4 +-
src/test/regress/sql/alter_generic.sql         | 158 +++----
src/test/regress/sql/alter_table.sql           |  10 +-
src/test/regress/sql/create_procedure.sql      |  12 +-
src/test/regress/sql/create_view.sql           |   2 +-
src/test/regress/sql/identity.sql              |   8 +-
src/test/regress/sql/insert.sql                |  18 +-
src/test/regress/sql/namespace.sql             |  28 +-
src/test/regress/sql/privileges.sql            | 494 ++++++++++----------
src/test/regress/sql/rolenames.sql             |   4 +-
18 files changed, 864 insertions(+), 864 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-03-15 18:00 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-03-15 18:00 pgsql: Clean up duplicate role and schema names in regression tests. Tom Lane <tgl@sss.pgh.pa.us>
2018-03-15 18:00 pgsql: Clean up duplicate role and schema names in regression tests. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox