1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-14 02:22:38 +03:00
Files
postgres/src/backend/commands
Tom Lane 4eca1905d3 Fix CREATE VIEW to allow zero-column views.
We should logically have allowed this case when we allowed zero-column
tables, but it was overlooked.

Although this might be thought a feature addition, it's really a bug
fix, because it was possible to create a zero-column view via
the convert-table-to-view code path, and then you'd have a situation
where dump/reload would fail.  Hence, back-patch to all supported
branches.

Arrange the added test cases to provide coverage of the related
pg_dump code paths (since these views will be dumped and reloaded
during the pg_upgrade regression test).  I also made them test
the case where pg_dump has to postpone the view rule into post-data,
which disturbingly had no regression coverage before.

Report and patch by Ashutosh Sharma (test case by me)

Discussion: https://postgr.es/m/CAE9k0PkmHdeSaeZt2ujnb_cKucmK3sDDceDzw7+d5UZoNJPYOg@mail.gmail.com
2019-02-17 12:37:31 -05:00
..
2018-04-26 14:47:16 -04:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-07-18 16:17:42 +03:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-03-16 13:18:06 -04:00
2018-01-02 23:30:12 -05:00
2018-03-16 13:18:06 -04:00
2018-10-03 13:11:44 -07:00
2018-04-26 14:47:16 -04:00
2018-04-26 14:47:16 -04:00
2018-04-12 11:22:56 +01:00
2018-01-02 23:30:12 -05:00
2018-04-26 14:47:16 -04:00
2019-02-10 10:00:11 -03:00
2018-04-07 17:45:39 -04:00
2018-01-19 14:01:15 -05:00
2018-01-02 23:30:12 -05:00