-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support REFRESH MATERIALIZED VIEW when storage differs in schema
The materialized view's storage table may have a schema different than the materialized view itself. This is already supported when reading (the coercions are getting applied as necessary), but was not supported for REFRESH. In the REFRESH normal INSERT constraints where getting applied, thus not allowing the materialized view to, for example, store temporal values in a varchar column. The change removes the constraint, and therefore a storage table may use any type that is coercible to from the view definition type. Of course, the implementations should only use types where coercion to the storage and backwards does round trip.
- Loading branch information
Showing
4 changed files
with
55 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters