From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Siraj G <tosiraj.g@gmail.com>
To: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Detect who ran DROP schema
Date: Wed, 24 Jul 2024 09:34:58 +0200
Message-ID: <0be99bd63697f6a49e2b14c7542c820448ade8e4.camel@cybertec.at> (raw)
In-Reply-To: <CAC5iy62-OASWAM0vOCcbfZ+04O59cmAdJpZex4KFMmzvr_GjyQ@mail.gmail.com>
References: <CAC5iy62-OASWAM0vOCcbfZ+04O59cmAdJpZex4KFMmzvr_GjyQ@mail.gmail.com>
On Wed, 2024-07-24 at 12:44 +0530, Siraj G wrote:
> A schema was dropped from our UAT environment on 18th July. We are trying to
> find out who did. We have only one user in our environment, i.e., postgres,
> but we are trying to identify from where the connection was initiated, which
> issued DROP schema. Can anyone help?
Unless you have configured logging, nobody can figure that out.
Among the things you are doing wrong is that you are using a superuser.
Yours,
Laurenz Albe
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: pgsql-admin@postgresql.org
Cc: laurenz.albe@cybertec.at, tosiraj.g@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Detect who ran DROP schema
In-Reply-To: <0be99bd63697f6a49e2b14c7542c820448ade8e4.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox