pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Don't throw an error for LOCK TABLE on a self-referential view.
4+ messages / 1 participants
[nested] [flat]

* pgsql: Don't throw an error for LOCK TABLE on a self-referential view.
@ 2020-11-05 16:44 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2020-11-05 16:44 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Don't throw an error for LOCK TABLE on a self-referential view.

LOCK TABLE has complained about "infinite recursion" when applied
to a self-referential view, ever since we made it recurse into views
in v11.  However, that breaks pg_dump's new assumption that it's
okay to lock every relation.  There doesn't seem to be any good
reason to throw an error: if we just abandon the recursion, we've
still satisfied the requirement of locking every referenced relation.

Per bug #16703 from Andrew Bille (via Alexander Lakhin).

Discussion: https://postgr.es/m/16703-e348f58aab3cf6cc@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5b7bfc39726ff9f6c52dd73e337c34e74e0d1f39

Modified Files
--------------
src/backend/commands/lockcmds.c    | 21 ++++++++++++---------
src/test/regress/expected/lock.out |  4 +---
src/test/regress/sql/lock.sql      |  2 +-
3 files changed, 14 insertions(+), 13 deletions(-)



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

* pgsql: Don't throw an error for LOCK TABLE on a self-referential view.
@ 2020-11-05 16:44 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2020-11-05 16:44 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Don't throw an error for LOCK TABLE on a self-referential view.

LOCK TABLE has complained about "infinite recursion" when applied
to a self-referential view, ever since we made it recurse into views
in v11.  However, that breaks pg_dump's new assumption that it's
okay to lock every relation.  There doesn't seem to be any good
reason to throw an error: if we just abandon the recursion, we've
still satisfied the requirement of locking every referenced relation.

Per bug #16703 from Andrew Bille (via Alexander Lakhin).

Discussion: https://postgr.es/m/16703-e348f58aab3cf6cc@postgresql.org

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/44b973b91029cb5aecf09d589bdf3f05cfddaa60

Modified Files
--------------
src/backend/commands/lockcmds.c    | 21 ++++++++++++---------
src/test/regress/expected/lock.out |  4 +---
src/test/regress/sql/lock.sql      |  2 +-
3 files changed, 14 insertions(+), 13 deletions(-)



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

* pgsql: Don't throw an error for LOCK TABLE on a self-referential view.
@ 2020-11-05 16:44 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2020-11-05 16:44 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Don't throw an error for LOCK TABLE on a self-referential view.

LOCK TABLE has complained about "infinite recursion" when applied
to a self-referential view, ever since we made it recurse into views
in v11.  However, that breaks pg_dump's new assumption that it's
okay to lock every relation.  There doesn't seem to be any good
reason to throw an error: if we just abandon the recursion, we've
still satisfied the requirement of locking every referenced relation.

Per bug #16703 from Andrew Bille (via Alexander Lakhin).

Discussion: https://postgr.es/m/16703-e348f58aab3cf6cc@postgresql.org

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0bdf1ef3d53e42c1c050a9f30b663fe72269a129

Modified Files
--------------
src/backend/commands/lockcmds.c    | 21 ++++++++++++---------
src/test/regress/expected/lock.out |  4 +---
src/test/regress/sql/lock.sql      |  2 +-
3 files changed, 14 insertions(+), 13 deletions(-)



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

* pgsql: Don't throw an error for LOCK TABLE on a self-referential view.
@ 2020-11-05 16:44 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2020-11-05 16:44 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Don't throw an error for LOCK TABLE on a self-referential view.

LOCK TABLE has complained about "infinite recursion" when applied
to a self-referential view, ever since we made it recurse into views
in v11.  However, that breaks pg_dump's new assumption that it's
okay to lock every relation.  There doesn't seem to be any good
reason to throw an error: if we just abandon the recursion, we've
still satisfied the requirement of locking every referenced relation.

Per bug #16703 from Andrew Bille (via Alexander Lakhin).

Discussion: https://postgr.es/m/16703-e348f58aab3cf6cc@postgresql.org

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7dc18c619dac7ddf8af62b4d33e4bd33c7bfb067

Modified Files
--------------
src/backend/commands/lockcmds.c    | 21 ++++++++++++---------
src/test/regress/expected/lock.out |  4 +---
src/test/regress/sql/lock.sql      |  2 +-
3 files changed, 14 insertions(+), 13 deletions(-)



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


end of thread, other threads:[~2020-11-05 16:44 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-11-05 16:44 pgsql: Don't throw an error for LOCK TABLE on a self-referential view. Tom Lane <tgl@sss.pgh.pa.us>
2020-11-05 16:44 pgsql: Don't throw an error for LOCK TABLE on a self-referential view. Tom Lane <tgl@sss.pgh.pa.us>
2020-11-05 16:44 pgsql: Don't throw an error for LOCK TABLE on a self-referential view. Tom Lane <tgl@sss.pgh.pa.us>
2020-11-05 16:44 pgsql: Don't throw an error for LOCK TABLE on a self-referential view. 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