From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Require details that how to find user creation date in postgresql Database
Date: Fri, 3 Dec 2021 14:35:55 +0200
Message-ID: <ee637f77-ea04-64f7-b7eb-38fcce9343a2@matrix.gatewaynet.com> (raw)
In-Reply-To: <KL1PR03MB5572788B0EC0152863674BB483699@KL1PR03MB5572.apcprd03.prod.outlook.com>
References: <KL1PR03MB5572657A094B732736E3FA1D83699@KL1PR03MB5572.apcprd03.prod.outlook.com>
<KL1PR03MB5572788B0EC0152863674BB483699@KL1PR03MB5572.apcprd03.prod.outlook.com>
On 2/12/21 11:51 π.μ., Sonai muthu raja M wrote:
> Dear Team,
>
> Kindly help us to provide the details that how to find User creation date in postgresql Database.
>
> Note: we know that we can find the create user query from postgresql log. Apart from that how to find it from inside the Database
Till the next freeze (normal, explicit or emergency) and provided track_commit_timestamp is set to on, you can use this :
dynacom=# create role nuzer;
CREATE ROLE
dynacom=# select pg_xact_commit_timestamp(xmin) from pg_authid where rolname = 'nuzer';
pg_xact_commit_timestamp
-------------------------------
2021-12-03 14:35:09.163502+02
(1 row)
>
> */Warm regards,/**/
>
> M Sonai Muthu Raja
> Managed Delivery Services - DBA Support
> M: +919003132734
> II Floor, TIDEL Park, 4 Rajiv Gandhi Salai,
> /**/Taramani, Chennai – 600 113/**/
> /***//
>
>
>
> www.sifytechnologies.com <http://www.sifytechnologies.com;
>
>
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> *From:* Sonai muthu raja M <Sonaimuthu.Raja@sifycorp.Com>
> *Sent:* Thursday, December 2, 2021 2:54 PM
> *To:* security@postgresql.org <security@postgresql.org>
> *Cc:* Sonai muthu raja M <Sonaimuthu.Raja@sifycorp.Com>
> *Subject:* Require details that how to find user creation date in postgresql Database
> Dear Team,
>
> Kindly help us to provide the details that how to find User creation date in postgresql Database.
>
> Note: we know that we can find the create user query from postgresql log. Apart from that how to find it from inside the Database.
>
> */Warm regards,/**/
>
> M Sonai Muthu Raja
> Managed Delivery Services - DBA Support
> M: +919003132734
> II Floor, TIDEL Park, 4 Rajiv Gandhi Salai,
> /**/Taramani, Chennai – 600 113/**/
> /***//
>
>
>
> www.sifytechnologies.com <http://www.sifytechnologies.com;
>
>
> DISCLAIMER: The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential
> or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this
> message and any attachments. Please note that intercepting or any unauthorized use of this message or any attachment can be treated as infringement of person’s right of privacy under the Human
> Rights Act 1993 and also is a Criminal Offence under the Information and Technology Act, 2008.
>
> WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused
> by any virus transmitted by this email. Thank you for your cooperation.
--
Achilleas Mantzios
DBA, Analyst, IT Lead
IT DEPT
Dynacom Tankers Mgmt
Attachments:Outlook-l51oy25v.png (image/png, 14.2K) downloadview imageOutlook-mexacflr.png (image/png, 14.2K) downloadview image
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: achill@matrix.gatewaynet.com
Subject: Re: Require details that how to find user creation date in postgresql Database
In-Reply-To: <ee637f77-ea04-64f7-b7eb-38fcce9343a2@matrix.gatewaynet.com>
References: <KL1PR03MB5572657A094B732736E3FA1D83699@KL1PR03MB5572.apcprd03.prod.outlook.com> <KL1PR03MB5572788B0EC0152863674BB483699@KL1PR03MB5572.apcprd03.prod.outlook.com> <ee637f77-ea04-64f7-b7eb-38fcce9343a2@matrix.gatewaynet.com>
* 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