Re: more ALTER .. DEPENDS ON EXTENSION fixes
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Ibrar Ahmed <ibrar.ahmad@gmail.com>, Ahsan Hadi <ahsan.hadi@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-03-11T14:30:53Z
Lists: pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes: > I'm still not sure whether to apply 0003 (+ your tab-completion patch, > thanks for it) to backbranches or just to master. It seems legitimate > to see it as a feature addition, but OTOH the overall feature is not > complete without it ... 0003 is the command addition to allow removing such a dependency, right? Given the lack of field demand I see no reason to risk adding it to the back branches. BTW, I did not like the syntax too much. "NO DEPENDS ON EXTENSION" doesn't seem like good English. "NOT DEPENDS ON EXTENSION" is hardly any better. The real problem with both is that an ALTER action should be, well, an action. A grammar stickler would say that it should be "ALTER thing DROP DEPENDENCY ON EXTENSION ext", but perhaps we could get away with "ALTER thing DROP DEPENDS ON EXTENSION ext" to avoid adding a new keyword. By that logic the original command should have been "ALTER thing ADD DEPENDS ON EXTENSION ext", but I suppose it's too late for that. regards, tom lane
Commits
-
Add tab-completion for ALTER INDEX .. [NO] DEPENDS ON
- 1e324cb0e761 13.0 landed
-
Add ALTER .. NO DEPENDS ON
- 5fc703946bf3 13.0 landed
-
Add pg_dump support for ALTER obj DEPENDS ON EXTENSION
- f977e6dec8a0 12.3 landed
- e70187c9b47c 11.8 landed
- d04e342ba404 10.13 landed
- b08dee24a557 13.0 landed
- 2b9d70159154 9.6.18 landed
-
Avoid duplicates in ALTER ... DEPENDS ON EXTENSION
- b7739ebecdcc 12.3 landed
- 899a04f5ed61 13.0 landed
- 7c094a11c70d 11.8 landed
- 73b31e784d64 9.6.18 landed
- 3dfd2d6cd28a 10.13 landed