473,396 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

recovering fields in tables

Hello,
i deleted few fields in a PostGreSql table. now i want recover them. how can i get them.
...das
May 8 '07 #1
5 1799
michaelb
534 Expert 512MB
You can add these fields back to the table with the ALTER TABLE command.
But if you want to restore the values on these fileds your only hope is restoring the whole table from the backup, if you have one.
May 8 '07 #2
You can add these fields back to the table with the ALTER TABLE command.
But if you want to restore the values on these fileds your only hope is restoring the whole table from the backup, if you have one.
Thanq Sir,

Yes we have the backup. can guide in detail with syntaxes please.
...Das
May 9 '07 #3
michaelb
534 Expert 512MB
I cannot help you with syntax because there's more than one way to backup the database and you did not tell anything about which backup method you used.

Look at backup and restore man page, you may find everything you need there.

If you don't find the answer tell us the Operating System you're running on and how the backup was created, so we could help you here.
May 9 '07 #4
Dear Sir,
Thank you for ur replies. by your link(Bakup and restore) we could get the database from past 10 days backup. but now i need to replace only the altered table, but not the entire database. we tried using exoport and import using Ms excell file. but there some errors are coming. like excess/redundant data or 0/null values.
Please help me how can i shift / replace a table from one database to another database.
Thankyou and Regards,
..das
May 10 '07 #5
michaelb
534 Expert 512MB
You still did not tell anything about how your backup was created.
If you have an ASCII dump you can simply edit the backup file and take out everything you don't need, keeping only commands and data related to your table.
You may need to add a command to either drop/recreate this table or just truncate it.

If you have any dependencies (other tables with foreign keys pointing to this table, views, triggers, rules, etc) you may need to do some extra work.
May 10 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: news.dsl.pipex.com | last post by:
Hi Is it possible to recover a table if it has been deleted and before the mdb file has been compacted? Thanks Regards
5
by: Megan | last post by:
Hi everybody- I'm helping a friend with a music database. She has an old one and is creating a new one. She wants to compare records and fields in the old database with records and fields in the...
1
by: svdh | last post by:
I have posed a question last saturday and have advanced alot in the meantime. But I am still not there Problem is that I try to merging various fields from various tables in one document in Word...
3
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
3
by: Reader | last post by:
Hello all, I am joining two tables in a query and the output should be all those records where two fields in table1 match two corresponding fields in table2. I joined the tables using both...
1
by: FearlessFerret | last post by:
I have a database instance from DB2 V2 under AIX 3.2.5. I want to dump all the tables in this database, but don't have a running DB2 V2 instance. Assume I have access to any number of 'modern'...
3
by: shawnews | last post by:
Please help me...a newbie here.... I having been working two days on a project, thought I was almost done until I tried to create a report using a query I had succesfully made. I get an error...
0
by: hopfer | last post by:
Can anyone figure out what can I do? The Db2 container crashed, backup failed and everything I have is a copy of de .DAT made to another folder. I need recover from it or extract the tables to...
3
by: subhbhav | last post by:
Hi, Is there any way to get a db2 9.1 Windows UDB database which is in inconsistent state to start without recovery? We were loading data from a source and the database crashed. The Server...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.