git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3a4b891) | patch
Clean up duplicate role and schema names in regression tests.
2018年3月15日 18:00:31 +0000 (14:00 -0400)
2018年3月15日 18:00:31 +0000 (14:00 -0400)
commit fb7db40ad26c3384f81d471442743076ade3f82a
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
18 files changed:
src/test/regress/expected/alter_generic.out diff | blob | blame | history
src/test/regress/expected/alter_table.out diff | blob | blame | history
src/test/regress/expected/create_procedure.out diff | blob | blame | history
src/test/regress/expected/create_view.out diff | blob | blame | history
src/test/regress/expected/identity.out diff | blob | blame | history
src/test/regress/expected/insert.out diff | blob | blame | history
src/test/regress/expected/namespace.out diff | blob | blame | history
src/test/regress/expected/privileges.out diff | blob | blame | history
src/test/regress/expected/rolenames.out diff | blob | blame | history
src/test/regress/sql/alter_generic.sql diff | blob | blame | history
src/test/regress/sql/alter_table.sql diff | blob | blame | history
src/test/regress/sql/create_procedure.sql diff | blob | blame | history
src/test/regress/sql/create_view.sql diff | blob | blame | history
src/test/regress/sql/identity.sql diff | blob | blame | history
src/test/regress/sql/insert.sql diff | blob | blame | history
src/test/regress/sql/namespace.sql diff | blob | blame | history
src/test/regress/sql/privileges.sql diff | blob | blame | history
src/test/regress/sql/rolenames.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /