public inbox for [email protected]
help / color / mirror / Atom feedFrom: David Rowley <[email protected]>
To: Sasmit Utkarsh <[email protected]>
Cc: [email protected]
Subject: Re: Assistance needed for the query execution in non-public schema
Date: Tue, 16 Apr 2024 23:26:22 +1200
Message-ID: <CAApHDvpPcgdAczFntx-WYFDvvSWjZca3Ckmz6cohf1ELFVsKAA@mail.gmail.com> (raw)
In-Reply-To: <CAM-5MT3JYBPtbtq0P9NeWtZcBMyCTeyCd8YNZdN60b-FNWxocA@mail.gmail.com>
References: <CAM-5MT3JYBPtbtq0P9NeWtZcBMyCTeyCd8YNZdN60b-FNWxocA@mail.gmail.com>
On Tue, 16 Apr 2024 at 23:00, Sasmit Utkarsh <[email protected]> wrote:
> msshctd=> SELECT setval(pg_get_serial_sequence('mqa_flfo_cstr', 'id'), coalesce(MAX(id), 1)) from mqa_flfo_cstr;
> ERROR: permission denied for sequence mqa_flfo_cstr_id_seq
> msshctd=> SELECT setval(pg_get_serial_sequence('mqa_ffp_nval', 'id'), coalesce(MAX(id), 1)) from mqa_ffp_nval;
> ERROR: permission denied for sequence mqa_ffp_nval_id_seq
> GRANT USAGE, ALTER ON SEQUENCE mqa_flfo_cstr_id_seq TO shc_uadmin;
> ERROR: unrecognized privilege type "alter" SQL state: 42601
According to our documentation for setval():
"This function requires UPDATE privilege on the sequence."
https://www.postgresql.org/docs/current/functions-sequence.html
David
view thread (3+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Assistance needed for the query execution in non-public schema
In-Reply-To: <CAApHDvpPcgdAczFntx-WYFDvvSWjZca3Ckmz6cohf1ELFVsKAA@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox