Skip to content

Cannot see CONSTRAINT CHECK for PostgreSQL table? #3799

@cviebrock

Description

@cviebrock

Description

I have a PostgreSQL table where I've added the following constraint check:

ALTER TABLE playlistitem
ADD CONSTRAINT only_one_reference CHECK (
  (chapter IS NOT NULL)::INT + (episode IS NOT NULL)::INT + (playlist IS NOT NULL)::INT = 1
);

I can not figure out how to view this constraint in the TablePlus UI. The table structure doesn't show it. And clicking "Info" (to get the table definition in SQL) doesn't show it either.

Is it possible to view this in the UI?

Version Details

  • TablePlus Version 6.8.2 (656) on MacOS Tahoe 26.3.1
  • PostgreSQL 14.22 (on remote server, connecting over SSH)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions