Skip to content

"ERROR: cannot change name of view column" on a view when applying diff to DB #2056

@pms967

Description

@pms967

Bug description

Trying to apply to the actual DB a "diff" including a column name change in a view results in this error:

Could not execute the SQL command.
Message returned: ERROR: cannot change name of view column "dsid" to "msid"
HINT: Use ALTER VIEW ... RENAME COLUMN ... to change name of view column instead.

This may be a PostgreSQL bug, though?

According to the logs, apparently pgmodeler tried to use "CREATE OR REPLACE VIEW", which should have worked?!

ERROR:  cannot change name of view column "dsid" to "msid"
HINT:  Use ALTER VIEW ... RENAME COLUMN ... to change name of view column instead.
STATEMENT:  CREATE OR REPLACE VIEW public.vw_action_sequence_matrix
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions