Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8675389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:56:16+00:00 2026-06-12T19:56:16+00:00

While editing some records in my PostgreSQL database using sql in the terminal (in

  • 0

While editing some records in my PostgreSQL database using sql in the terminal (in ubuntu lucid), I made a wrong update.

Instead of –

update mytable set start_time='13:06:00' where id=123;

I typed –

update mytable set start_time='13:06:00';

So, all records are now having the same start_time value.

Is there a way to undo this change? There are some 500+ records in the table, and I do not know what the start_time value for each record was

Is it lost forever?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:56:18+00:00Added an answer on June 12, 2026 at 7:56 pm

    I’m assuming it was a transaction that’s already committed? If so, that’s what “commit” means, you can’t go back.

    Some data may be recoverable if you’re lucky. Stop the database NOW.

    Here’s an answer I wrote on the same topic earlier. I hope it’s helpful.

    This might be too: Recoved deleted rows in postgresql .

    Unless the data is absolutely critical, just restore from backups, it’ll be lots easier and less painful. If you didn’t have backups, consider yourself soundly thwacked.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write some html in the Html tab of TinyMCE while editing
I've started using Sublime Text and it's great. But while editing Wix setup files
In Visual Studio 2008, while editing the web page, it is displaying some error
Ask a question, and while editing the body of your question, click on some
Every once in a while I'm editing some long pair of if-then-else statements (or
I'm editing some old sideshow code someone else written a while ago and I
I'm using an editable QTableView + QStandardItemModel. While editing a cell in a table
While editing .scm files it would be great if Vim would automatically put the
I've created new db via phpMyAdmin and while editing db privilages clicked delete localhost
I remember a while back reading about editing the proxy pac file which would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.