Add toast_tuple_target to Materialized View properties dialog (#9626)#9769
Add toast_tuple_target to Materialized View properties dialog (#9626)#9769pavanmanishd wants to merge 3 commits into
Conversation
…ties properties.sql: extract toast_tuple_target from c.reloptions create.sql: include TOAST_TUPLE_TARGET in WITH clause when set update.sql: SET/RESET TOAST_TUPLE_TARGET when value changes mview.ui.js: add int field (128-8160, PG11+) in Definition group Mirrors the existing fillfactor pattern throughout.
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Merged to One adjustment during merge: the original change only touched the Verification: template output is byte-identical to the previous SQL when |
Closes #9626
Problem
The
toast_tuple_targetstorage parameter (PostgreSQL 11+) is supported by materialized views viaALTER MATERIALIZED VIEW ... SET(TOAST_TUPLE_TARGET = N), but the pgAdmin Materialized View properties dialog has no way to view or change it.Changes
toast_tuple_targetfromc.reloptions(same regex pattern asfillfactor)TOAST_TUPLE_TARGETin theWITHclause when set; extend the condition that decides whether aWITHblock is neededSET/RESETTOAST_TUPLE_TARGETwhen the value changes (mirrors theFILLFACTORblock exactly)min_version: 110000