diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2020-03-11 11:04:59 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2020-03-11 11:04:59 -0300 |
commit | 899a04f5ed61c3db7a2bd84957ecf530c09fd05a (patch) | |
tree | c9245a308085bda6c99ae82223a0f72c1c00a298 /src/backend/commands/async.c | |
parent | 1c918381814ca6ff976aab2bf130b0c582ca30e4 (diff) | |
download | postgresql-899a04f5ed61c3db7a2bd84957ecf530c09fd05a.tar.gz postgresql-899a04f5ed61c3db7a2bd84957ecf530c09fd05a.zip |
Avoid duplicates in ALTER ... DEPENDS ON EXTENSION
If the command is attempted for an extension that the object already
depends on, silently do nothing.
In particular, this means that if a database containing multiple such
entries is dumped, the restore will silently do the right thing and
record just the first one. (At least, in a world where pg_dump does
dump such entries -- which it doesn't currently, but it will.)
Backpatch to 9.6, where this kind of dependency was introduced.
Reviewed-by: Ibrar Ahmed, Tom Lane (offlist)
Discussion: https://postgr.es/m/20200217225333.GA30974@alvherre.pgsql
Diffstat (limited to 'src/backend/commands/async.c')
0 files changed, 0 insertions, 0 deletions