get back deleted data from a table in postgres

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mndprasad
    New Member
    • Jan 2008
    • 20

    get back deleted data from a table in postgres

    Hi,

    I made a blunder mistake..i have deleted some 100 rows from my table in postgres and that is very important in my project..pls give me a solution how to recover those deleted data ..i dont have any dump of that table....

    thanks in advance
  • rski
    Recognized Expert Contributor
    • Dec 2006
    • 700

    #2
    Originally posted by mndprasad
    Hi,

    I made a blunder mistake..i have deleted some 100 rows from my table in postgres and that is very important in my project..pls give me a solution how to recover those deleted data ..i dont have any dump of that table....

    thanks in advance
    do you have WAL files?

    Comment

    • mndprasad
      New Member
      • Jan 2008
      • 20

      #3
      Originally posted by rski
      do you have WAL files?


      No rski,

      i never heard abt that..i am a new bie..
      so pls help me and what is the WAL files?

      Comment

      • mndprasad
        New Member
        • Jan 2008
        • 20

        #4
        Originally posted by mndprasad
        No rski,

        i never heard abt that..i am a new bie..
        so pls help me and what is the WAL files?
        i have already google many hours and wasted my time
        i have tried with toast data as suggested by some sites

        Comment

        • debasisdas
          Recognized Expert Expert
          • Dec 2006
          • 8119

          #5
          If the transactions are commited , i don't think you can recover all those records back.

          Comment

          • mndprasad
            New Member
            • Jan 2008
            • 20

            #6
            Originally posted by debasisdas
            If the transactions are commited , i don't think you can recover all those records back.


            NO,i have not committed the transaction

            Comment

            • rski
              Recognized Expert Contributor
              • Dec 2006
              • 700

              #7
              Originally posted by mndprasad
              NO,i have not committed the transaction
              if you're begginer you probably do not understand what mnsprasad says because
              the question is if you start the transaction using 'begin transaction' command before deleting rows and and do not confirm that transaction. I'm afraid you do not, you just delete rows (using delete command) if so it means that the transaction have been confirmed.
              When you delete rows they phisically still exists in a table until you call the 'vacuum' command, but i don't know if there is a way do restore that rows, i do not know a software which do that (postgres do not).
              WAL is a way to do a incremental buckups, using it you can restore a database. More on postgresql.org.

              Comment

              • mndprasad
                New Member
                • Jan 2008
                • 20

                #8
                Originally posted by rski
                if you're begginer you probably do not understand what mnsprasad says because
                the question is if you start the transaction using 'begin transaction' command before deleting rows and and do not confirm that transaction. I'm afraid you do not, you just delete rows (using delete command) if so it means that the transaction have been confirmed.
                When you delete rows they phisically still exists in a table until you call the 'vacuum' command, but i don't know if there is a way do restore that rows, i do not know a software which do that (postgres do not).
                WAL is a way to do a incremental buckups, using it you can restore a database. More on postgresql.org.

                Thank u..rski
                I have just deleted a table ...if anyone knows how to recover deleted data pls reply me

                Comment

                Working...