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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 2031e16) | patch
Allow non-quoted identifiers as isolation test session/step names.
2021年6月23日 22:41:39 +0000 (18:41 -0400)
2021年6月23日 22:41:39 +0000 (18:41 -0400)
commit a443c1b2d6a646cf90a8afc193c07ed12a2bf045
Allow non-quoted identifiers as isolation test session/step names.

For no obvious reason, isolationtester has always insisted that
session and step names be written with double quotes. This is
fairly tedious and does little for test readability, especially
since the names that people actually choose almost always look
like normal identifiers. Hence, let's tweak the lexer to allow
SQL-like identifiers not only double-quoted strings.

(They're SQL-like, not exactly SQL, because I didn't add any
case-folding logic. Also there's no provision for U&"..." names,
not that anyone's likely to care.)

There is one incompatibility introduced by this change: if you write
"foo""bar" with no space, that used to be taken as two identifiers,
but now it's just one identifier with an embedded quote mark.

I converted all the src/test/isolation/ specfiles to remove
unnecessary double quotes, but stopped there because my
eyes were glazing over already.

Like 741d7f104, back-patch to all supported branches, so that this
isn't a stumbling block for back-patching isolation test changes.

Discussion: https://postgr.es/m/759113.1623861959@sss.pgh.pa.us
104 files changed:
contrib/test_decoding/specs/oldest_xmin.spec diff | blob | blame | history
src/test/isolation/README diff | blob | blame | history
src/test/isolation/specparse.y diff | blob | blame | history
src/test/isolation/specs/aborted-keyrevoke.spec diff | blob | blame | history
src/test/isolation/specs/alter-table-1.spec diff | blob | blame | history
src/test/isolation/specs/alter-table-2.spec diff | blob | blame | history
src/test/isolation/specs/alter-table-3.spec diff | blob | blame | history
src/test/isolation/specs/alter-table-4.spec diff | blob | blame | history
src/test/isolation/specs/async-notify.spec diff | blob | blame | history
src/test/isolation/specs/classroom-scheduling.spec diff | blob | blame | history
src/test/isolation/specs/create-trigger.spec diff | blob | blame | history
src/test/isolation/specs/deadlock-hard.spec diff | blob | blame | history
src/test/isolation/specs/deadlock-parallel.spec diff | blob | blame | history
src/test/isolation/specs/deadlock-simple.spec diff | blob | blame | history
src/test/isolation/specs/deadlock-soft-2.spec diff | blob | blame | history
src/test/isolation/specs/deadlock-soft.spec diff | blob | blame | history
src/test/isolation/specs/delete-abort-savept-2.spec diff | blob | blame | history
src/test/isolation/specs/delete-abort-savept.spec diff | blob | blame | history
src/test/isolation/specs/detach-partition-concurrently-1.spec diff | blob | blame | history
src/test/isolation/specs/detach-partition-concurrently-2.spec diff | blob | blame | history
src/test/isolation/specs/detach-partition-concurrently-3.spec diff | blob | blame | history
src/test/isolation/specs/detach-partition-concurrently-4.spec diff | blob | blame | history
src/test/isolation/specs/drop-index-concurrently-1.spec diff | blob | blame | history
src/test/isolation/specs/eval-plan-qual-trigger.spec diff | blob | blame | history
src/test/isolation/specs/eval-plan-qual.spec diff | blob | blame | history
src/test/isolation/specs/fk-contention.spec diff | blob | blame | history
src/test/isolation/specs/fk-deadlock.spec diff | blob | blame | history
src/test/isolation/specs/fk-deadlock2.spec diff | blob | blame | history
src/test/isolation/specs/fk-partitioned-1.spec diff | blob | blame | history
src/test/isolation/specs/fk-partitioned-2.spec diff | blob | blame | history
src/test/isolation/specs/freeze-the-dead.spec diff | blob | blame | history
src/test/isolation/specs/horizons.spec diff | blob | blame | history
src/test/isolation/specs/index-only-scan.spec diff | blob | blame | history
src/test/isolation/specs/inherit-temp.spec diff | blob | blame | history
src/test/isolation/specs/insert-conflict-do-nothing-2.spec diff | blob | blame | history
src/test/isolation/specs/insert-conflict-do-nothing.spec diff | blob | blame | history
src/test/isolation/specs/insert-conflict-do-update-2.spec diff | blob | blame | history
src/test/isolation/specs/insert-conflict-do-update-3.spec diff | blob | blame | history
src/test/isolation/specs/insert-conflict-do-update.spec diff | blob | blame | history
src/test/isolation/specs/insert-conflict-specconflict.spec diff | blob | blame | history
src/test/isolation/specs/lock-committed-keyupdate.spec diff | blob | blame | history
src/test/isolation/specs/lock-committed-update.spec diff | blob | blame | history
src/test/isolation/specs/lock-update-delete.spec diff | blob | blame | history
src/test/isolation/specs/lock-update-traversal.spec diff | blob | blame | history
src/test/isolation/specs/multiple-cic.spec diff | blob | blame | history
src/test/isolation/specs/multiple-row-versions.spec diff | blob | blame | history
src/test/isolation/specs/multixact-no-deadlock.spec diff | blob | blame | history
src/test/isolation/specs/multixact-no-forget.spec diff | blob | blame | history
src/test/isolation/specs/nowait-2.spec diff | blob | blame | history
src/test/isolation/specs/nowait-3.spec diff | blob | blame | history
src/test/isolation/specs/nowait-4.spec diff | blob | blame | history
src/test/isolation/specs/nowait-5.spec diff | blob | blame | history
src/test/isolation/specs/nowait.spec diff | blob | blame | history
src/test/isolation/specs/partial-index.spec diff | blob | blame | history
src/test/isolation/specs/partition-concurrent-attach.spec diff | blob | blame | history
src/test/isolation/specs/partition-key-update-1.spec diff | blob | blame | history
src/test/isolation/specs/partition-key-update-2.spec diff | blob | blame | history
src/test/isolation/specs/partition-key-update-3.spec diff | blob | blame | history
src/test/isolation/specs/partition-key-update-4.spec diff | blob | blame | history
src/test/isolation/specs/plpgsql-toast.spec diff | blob | blame | history
src/test/isolation/specs/predicate-gin.spec diff | blob | blame | history
src/test/isolation/specs/predicate-gist.spec diff | blob | blame | history
src/test/isolation/specs/predicate-hash.spec diff | blob | blame | history
src/test/isolation/specs/predicate-lock-hot-tuple.spec diff | blob | blame | history
src/test/isolation/specs/prepared-transactions-cic.spec diff | blob | blame | history
src/test/isolation/specs/prepared-transactions.spec diff | blob | blame | history
src/test/isolation/specs/project-manager.spec diff | blob | blame | history
src/test/isolation/specs/propagate-lock-delete.spec diff | blob | blame | history
src/test/isolation/specs/read-only-anomaly-2.spec diff | blob | blame | history
src/test/isolation/specs/read-only-anomaly-3.spec diff | blob | blame | history
src/test/isolation/specs/read-only-anomaly.spec diff | blob | blame | history
src/test/isolation/specs/read-write-unique-2.spec diff | blob | blame | history
src/test/isolation/specs/read-write-unique-3.spec diff | blob | blame | history
src/test/isolation/specs/read-write-unique-4.spec diff | blob | blame | history
src/test/isolation/specs/read-write-unique.spec diff | blob | blame | history
src/test/isolation/specs/receipt-report.spec diff | blob | blame | history
src/test/isolation/specs/referential-integrity.spec diff | blob | blame | history
src/test/isolation/specs/reindex-concurrently.spec diff | blob | blame | history
src/test/isolation/specs/reindex-schema.spec diff | blob | blame | history
src/test/isolation/specs/ri-trigger.spec diff | blob | blame | history
src/test/isolation/specs/sequence-ddl.spec diff | blob | blame | history
src/test/isolation/specs/serializable-parallel-2.spec diff | blob | blame | history
src/test/isolation/specs/serializable-parallel.spec diff | blob | blame | history
src/test/isolation/specs/simple-write-skew.spec diff | blob | blame | history
src/test/isolation/specs/skip-locked-2.spec diff | blob | blame | history
src/test/isolation/specs/skip-locked-3.spec diff | blob | blame | history
src/test/isolation/specs/skip-locked-4.spec diff | blob | blame | history
src/test/isolation/specs/skip-locked.spec diff | blob | blame | history
src/test/isolation/specs/temporal-range-integrity.spec diff | blob | blame | history
src/test/isolation/specs/timeouts.spec diff | blob | blame | history
src/test/isolation/specs/total-cash.spec diff | blob | blame | history
src/test/isolation/specs/truncate-conflict.spec diff | blob | blame | history
src/test/isolation/specs/tuplelock-conflict.spec diff | blob | blame | history
src/test/isolation/specs/tuplelock-partition.spec diff | blob | blame | history
src/test/isolation/specs/tuplelock-update.spec diff | blob | blame | history
src/test/isolation/specs/tuplelock-upgrade-no-deadlock.spec diff | blob | blame | history
src/test/isolation/specs/two-ids.spec diff | blob | blame | history
src/test/isolation/specs/update-conflict-out.spec diff | blob | blame | history
src/test/isolation/specs/update-locked-tuple.spec diff | blob | blame | history
src/test/isolation/specs/vacuum-concurrent-drop.spec diff | blob | blame | history
src/test/isolation/specs/vacuum-conflict.spec diff | blob | blame | history
src/test/isolation/specs/vacuum-reltuples.spec diff | blob | blame | history
src/test/isolation/specs/vacuum-skip-locked.spec diff | blob | blame | history
src/test/isolation/specscanner.l diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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