Unix Technical Forum

HELP - Recover function delete

This is a discussion on HELP - Recover function delete within the pgsql Interfaces Pgadmin Support forums, part of the PostgreSQL category; --> Hi, I just hit twice the delete button on a function I spent two days writing (without backing it ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 08:08 PM
Pierre Racine
 
Posts: n/a
Default HELP - Recover function delete

Hi,

I just hit twice the delete button on a function I spent two days writing
(without backing it up. I know... I know...). Is there a way to recover it?

A simple garbage would do the job. I don't know many software now that do
not implement a sort of simple mecanism to recover what we threw away by
mistake...

Pierre



---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 08:08 PM
Andreas Pflug
 
Posts: n/a
Default Re: HELP - Recover function delete

Pierre Racine wrote:

> Hi,
>
> I just hit twice the delete button on a function I spent two days
> writing (without backing it up. I know... I know...). Is there a way
> to recover it?



Ahm, there's the security question, which asks for confirmation (which
may be disabled for people like me who newwer pressss da wrong kay :-)
A dropped object is dropped, but (as any row in a table) is still
physically present until VACUUMed. In theory, the XID could be tuned
back (by hacking the kernel), but I doubt it's worth the trouble.


>
> A simple garbage would do the job. I don't know many software now that
> do not implement a sort of simple mecanism to recover what we threw
> away by mistake...


Not this kind of stuff. The object tree is not an editor, but a
structured view of database content. We're executing "DROP FUNCTION
dontDropMe()" and that's it.

Happy recoding...

Regards,
Andreas


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:02 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com