Skip to content

Add toast_tuple_target to Materialized View properties dialog (#9626)#9769

Draft
pavanmanishd wants to merge 1 commit intopgadmin-org:masterfrom
pavanmanishd:fix/9626-toast-tuple-target-mview
Draft

Add toast_tuple_target to Materialized View properties dialog (#9626)#9769
pavanmanishd wants to merge 1 commit intopgadmin-org:masterfrom
pavanmanishd:fix/9626-toast-tuple-target-mview

Conversation

@pavanmanishd
Copy link

Closes #9626

Problem

The toast_tuple_target storage parameter (PostgreSQL 11+) is supported by materialized views via ALTER MATERIALIZED VIEW ... SET(TOAST_TUPLE_TARGET = N), but the pgAdmin Materialized View properties dialog has no way to view or change it.

Changes

  • properties.sql — extract toast_tuple_target from c.reloptions (same regex pattern as fillfactor)
  • create.sql — include TOAST_TUPLE_TARGET in the WITH clause when set; extend the condition that decides whether a WITH block is needed
  • update.sqlSET / RESET TOAST_TUPLE_TARGET when the value changes (mirrors the FILLFACTOR block exactly)
  • mview.ui.js — integer input field (min 128, max 8160) in the Definition group, min_version: 110000

…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.
@coderabbitai
Copy link

coderabbitai bot commented Mar 21, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 62c11b6a-3707-470b-a277-1d500b9323ae

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In the properties window of the materialized view parameter toast_tuple_target is not present

1 participant