On Wed, Dec 19, 2018 at 11:22:29PM +0000, Dagfinn Ilmari Mannsåker wrote: > Michael Paquier <mich...@paquier.xyz> writes: >> + /* Complete ON COMMIT actions for temp tables */ >> + else if (TailMatches("ON", "COMMIT")) >> + COMPLETE_WITH("PRESERVE ROWS", "DELETE ROWS", "DROP"); >> >> This causes ON COMMIT to show up for permanent and unlogged tables. > > No, this is for completing _after_ ON COMMIT, which is only suggested by > the clause for temporary tables above.
If a user types "CREATE TABLE foo () ON COMMIT" by himself and then asks for tab completion then he would get the suggestion, which is incorrect? -- Michael
signature.asc
Description: PGP signature