Skip to content

Wrong error message on pg <= 15 when creating role with bypassrls #124

Description

@steve-chavez

Problem

$ nix-shell

$ supautils-with-pg-15 psql -U privileged_role

postgres=> create user "prisma" with password 'custom_password' bypassrls createdb;
CREATE ROLE
postgres=> create user "prisma" with password 'custom_password' bypassrls createdb;
2025-03-03 16:59:27.034 -05 [18949] ERROR:  must be superuser to create bypassrls users
2025-03-03 16:59:27.034 -05 [18949] STATEMENT:  create user "prisma" with password 'custom_password' bypassrls createdb;
ERROR:  must be superuser to create bypassrls users

It should say:

ERROR:  42710: role "prisma" already exists

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions