Need to update all entries of one table based on an earlier backup

Поиск
Список
Период
Сортировка
От Gregory Williamson
Тема Need to update all entries of one table based on an earlier backup
Дата
Msg-id 8B319E5A30FF4A48BE7EEAAF609DB233021F2E70@COMAIL01.digitalglobe.com
обсуждение исходный текст
Ответы Re: Need to update all entries of one table based on an earlier backup  ("Markus Wollny" <Markus.Wollny@computec.de>)
Re: Need to update all entries of one table based on an earlier backup  (Thomas Pundt <mlists@rp-online.de>)
Список pgsql-general

For reasons best left unmentioned, I need to update entries in a table from a backup; I need to do all entries.

For reasons eluding my sleep deprived eyes this fails in every variation I can think of:

update foo set foo.foo_name2=foo_old.foo_name2 where foo.foo_id = foo_old.foo_id;
ERROR:  missing FROM-clause entry for table "foo_old"

Could someone please hit me with a clue-stick ? This is crucial and yet I am stumbling over something. Since I am not updating foo_old I am baffled as to what this messsage really means. I've tried "where foo_old.foo_id = foo.foo_id ... same message.

TIA,

Greg Williamson
Senior DBA
DigitalGlobe

Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information and must be protected in accordance with those provisions. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

(My corporate masters made me say this.)

В списке pgsql-general по дате отправления:

Предыдущее
От: Garry Saddington
Дата:
Сообщение: Re: Losing data
Следующее
От: "Markus Wollny"
Дата:
Сообщение: Re: Need to update all entries of one table based on an earlier backup