When i upgrade my azure postgres flexi server version from 11 to 16 it is giving error as "internal server error".

Suraj Jaiswal 0 Reputation points
2025-06-13T08:12:24.4866667+00:00

When i upgrade my azure postgres flexi server version from 11 to 16 it is giving error as "internal server error".

Azure Database for PostgreSQL
{count} votes

1 answer

Sort by: Most helpful
  1. Oury Ba-MSFT 20,911 Reputation points Microsoft Employee Moderator
    2025-06-25T19:05:01.88+00:00

    @Suraj Jaiswal Thank you for reaching out and sorry about the issue you are facing.

    Could you please run the below script.

    Root cause: sql_identifier is a domain used in system catalogs and information schema. It is not meant for use in user tables, because its definition can change between versions

    Next steps:

    1. Use this query in each database to identify where sql_identifier is used SELECT    n.nspname AS schema_name,    c.relname AS table_name,    a.attname AS column_name,    t.typname AS data_typeFROM    pg_attribute aJOIN    pg_class c ON a.attrelid = c.oidJOIN    pg_namespace n ON c.relnamespace = n.oidJOIN    pg_type t ON a.atttypid = t.oidWHERE    a.attnum > 0    AND NOT a.attisdropped    AND t.typname = 'sql_identifier'    AND n.nspname NOT IN ('pg_catalog', 'information_schema'); 2. Alter these columns to use any other compatible data_types
    2. Alter these columns to use any other compatible data_types
    3. Try the upgrade again

    Please let me know the result.

    Regards,

    Oury

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.