pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Holger Jakobs <holger@jakobs.com>
To: pgsql-admin@lists.postgresql.org
Cc: rajeshkumar.dba09@gmail.com
Subject: Re: PITR
Date: Wed, 22 Nov 2023 09:23:16 +0100
Message-ID: <32d5ce00-9624-e072-2b1a-9f6637369c1e@jakobs.com> (raw)
In-Reply-To: <CAJk5Atb_8Rmr8DmxWFmtR44CRQrT9cc4Nso9Z85owT3E-=OQ0w@mail.gmail.com>
References: <CAJk5Atb_8Rmr8DmxWFmtR44CRQrT9cc4Nso9Z85owT3E-=OQ0w@mail.gmail.com>


Am 22.11.23 um 09:11 schrieb Rajesh Kumar:
> Hi
>
> A person dropped the table and don't know time of drop.
>
> How do I do PITR. Backup strategy is weekly full backup and daily 
> differential backup. Using pgbackrest.
>
> Also. In future how do i monitor time of drop commands.


Monitoring DDL commands works fine using event triggers

https://www.postgresql.org/docs/current/event-triggers.html

Code of event triggers may even fail a command by raising an exception 
preventing the command becoming effective.

Regards,

Holger


-- 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012



Attachments:

  [application/pgp-signature] OpenPGP_signature (202B, ../32d5ce00-9624-e072-2b1a-9f6637369c1e@jakobs.com/2-OpenPGP_signature)
  download

view thread (30+ messages)  latest in thread

Message-ID: <32d5ce00-9624-e072-2b1a-9f6637369c1e@jakobs.com>
Permalink:  ../32d5ce00-9624-e072-2b1a-9f6637369c1e@jakobs.com/
Also on:    postgresql.org/message-id/32d5ce00-9624-e072-2b1a-9f6637369c1e@jakobs.com

 · 

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: pgsql-admin@postgresql.org
  Cc: holger@jakobs.com, pgsql-admin@lists.postgresql.org, rajeshkumar.dba09@gmail.com
  Subject: Re: PITR
  In-Reply-To: <32d5ce00-9624-e072-2b1a-9f6637369c1e@jakobs.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