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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: c117838) | patch
Clean up after erroneous SELECT FOR UPDATE/SHARE on a sequence.
Thu, 2 Jun 2011 19:31:02 +0000 (15:31 -0400)
Thu, 2 Jun 2011 19:31:02 +0000 (15:31 -0400)
commit bc0550f994539b4cd3b93487439c754e251fedb8
Clean up after erroneous SELECT FOR UPDATE/SHARE on a sequence.

My previous commit disallowed this operation, but did nothing about
cleaning up the damage if one had already been done. With the operation
disallowed, it's okay to just forcibly clear xmax in a sequence's tuple,
since any value seen there could not represent a live transaction's lock.
So, any sequence-specific operation will repair the problem automatically,
whether or not the user has already seen "could not access status of
transaction" failures.
src/backend/commands/sequence.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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