pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adarsh Sharma <adarsh.sharma@orkash.com>
To: pgsql-admin@postgresql.org
Subject: Get data back after drop Command
Date: Mon, 29 Aug 2011 10:18:14 +0530
Message-ID: <4E5B1A0E.8030805@orkash.com> (raw)

Dear all,

Today by mistake I issued a drop table statement in Postgresql database.
Now is it possible to get that data back through WAL.
My PostgresPLus Version : 8.4
OS : Linux ( CentOs )

My postgresql.conf parameters are :

# WRITE AHEAD LOG
#------------------------------------------------------------------------------ 


# - Settings -

fsync = on             synchronous_commit = on       wal_sync_method = 
fsync                  full_page_writes = on          wal_buffers = 
64kB   wal_writer_delay = 200ms commit_delay = 0      commit_siblings = 
5   checkpoint_segments = 32
checkpoint_timeout = 5min       checkpoint_completion_target = 0.5   
checkpoint_warning = 30s      archive_mode = on
archive_command = ''      archive_timeout = 0            
Please let me know the steps needed to get data back or ways to do.
Below is the list of files in my pg_xlog directory.

Thanks



------------------------------------------------------------------------

[root@ pg_xlog]# ls -ls
total 1082668
16404 -rw------- 1 postgres postgres 16777216 Aug  3 16:12 000000010000000B00000068
16404 -rw------- 1 postgres postgres 16777216 Aug 18 15:03 000000010000000B00000069
16404 -rw------- 1 postgres postgres 16777216 Aug 24 16:09 000000010000000B0000006A
16404 -rw------- 1 postgres postgres 16777216 Aug 25 12:37 000000010000000B0000006B
16404 -rw------- 1 postgres postgres 16777216 Aug 25 15:13 000000010000000B0000006C
16404 -rw------- 1 postgres postgres 16777216 Aug 29 09:24 000000010000000B0000006D
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B0000006E
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B0000006F
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B00000070
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:57 000000010000000B00000071
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B00000072
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B00000073
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:57 000000010000000B00000074
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:57 000000010000000B00000075
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:57 000000010000000B00000076
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B00000077
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B00000078
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B00000079
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B0000007A
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:57 000000010000000B0000007B
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B0000007C
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:57 000000010000000B0000007D
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B0000007E
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B0000007F
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:57 000000010000000B00000080
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:57 000000010000000B00000081
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B00000082
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B00000083
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B00000084
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B00000085
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:57 000000010000000B00000086
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:57 000000010000000B00000087
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B00000088
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B00000089
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B0000008A
16404 -rw------- 1 postgres postgres 16777216 Jul  7 13:00 000000010000000B0000008B
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B0000008C
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B0000008D
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B0000008E
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B0000008F
16404 -rw------- 1 postgres postgres 16777216 Jul  7 13:00 000000010000000B00000090
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B00000091
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:58 000000010000000B00000092
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B00000093
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B00000094
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B00000095
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B00000096
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B00000097
16404 -rw------- 1 postgres postgres 16777216 Jul  7 13:00 000000010000000B00000098
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B00000099
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B0000009A
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B0000009B
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B0000009C
16404 -rw------- 1 postgres postgres 16777216 Jul  7 13:00 000000010000000B0000009D
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B0000009E
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B0000009F
16404 -rw------- 1 postgres postgres 16777216 Jul  7 13:00 000000010000000B000000A0
16404 -rw------- 1 postgres postgres 16777216 Jul  7 13:00 000000010000000B000000A1
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B000000A2
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B000000A3
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B000000A4
16404 -rw------- 1 postgres postgres 16777216 Jul  7 13:00 000000010000000B000000A5
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B000000A6
16404 -rw------- 1 postgres postgres 16777216 Jul  7 12:59 000000010000000B000000A7
16404 -rw------- 1 postgres postgres 16777216 Jul  7 13:00 000000010000000B000000A8
16404 -rw------- 1 postgres postgres 16777216 Jul  7 13:00 000000010000000B000000A9
    4 drwx------ 2 postgres postgres     4096 Aug 25 15:13 archive_status

view thread (3+ messages)  latest in thread

Message-ID: <4E5B1A0E.8030805@orkash.com>
Permalink:  ../4E5B1A0E.8030805@orkash.com/
Also on:    postgresql.org/message-id/4E5B1A0E.8030805@orkash.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: adarsh.sharma@orkash.com
  Subject: Re: Get data back after drop Command
  In-Reply-To: <4E5B1A0E.8030805@orkash.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