Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 6159F1337BB0 for ; Wed, 6 Oct 2010 12:28:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 80149-09 for ; Wed, 6 Oct 2010 15:28:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from ns3b.twi.com.br (ns3b.twi.com.br [201.87.225.54]) by mail.postgresql.org (Postfix) with ESMTP id A8EA61337BA5 for ; Wed, 6 Oct 2010 12:28:31 -0300 (ADT) Received: (qmail 2779 invoked from network); 6 Oct 2010 12:26:45 -0300 Received: from unknown (HELO gibon) (gibon@comexsystem.com.br@[189.98.190.98]) (envelope-sender ) by ns3b.twi.com.br (qmail-ldap-1.03) with SMTP for ; 6 Oct 2010 12:26:44 -0300 Message-ID: <00f701cb656b$1fa34190$62be62bd@gibon> Reply-To: =?iso-8859-1?Q?F=E1bio_Gibon_-_Comex_System?= From: =?iso-8859-1?Q?F=E1bio_Gibon_-_Comex_System?= To: Cc: "PostgreSQL - mailing list" References: <00cd01cb6567$1fcbfc10$62be62bd@gibon> Subject: Re: Lost file Date: Wed, 6 Oct 2010 12:28:16 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00F4_01CB6551.F3696C80" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=-10 required=5 tests=BAYES_20=-0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201010/61 X-Sequence-Number: 35802 This is a multi-part message in MIME format. ------=_NextPart_000_00F4_01CB6551.F3696C80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Tks Fabrizio... I didn't want believe in this...but... :( My file exists, but with 0 bytes... the table struture only... = when i do "select * ..." is returned all columns but zero tuples... thanks again F=E1bio Gibon ----- Original Message -----=20 From: Fabr=EDzio de Royes Mello=20 To: F=E1bio Gibon - Comex System=20 Cc: PostgreSQL - mailing list=20 Sent: Wednesday, October 06, 2010 12:16 PM Subject: Re: [ADMIN] Lost file 2010/10/6 F=E1bio Gibon - Comex System Hi everybody, i lost one file in my file system, it's file reference the = one user table (table "x")... Are there some option to recover this = table? (without any backup and database isn't archive mode). Hi F=E1bio, If you have no backup I do not see how to recover it, but you can = recreate the table (only structure) by querying the system catalog (if = it is working of course).=20 Use a similar query do see some information about the columns of = table: SELECT * FROM information_schema.columns WHERE table_name =3D 'x'; To more information about system catalog see [1] and [2]. [1] http://www.postgresql.org/docs/current/interactive/catalogs.html [2] = http://www.postgresql.org/docs/current/interactive/information-schema.htm= l --=20 Fabr=EDzio de Royes Mello >> Blog sobre TI: http://fabriziomello.blogspot.com >> Perfil Linkedin: http://br.linkedin.com/in/fabriziomello ------=_NextPart_000_00F4_01CB6551.F3696C80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Tks=20 Fabrizio...
         I didn't = want=20 believe in this...but... :(
 
         My=20 file exists, but with 0 bytes... the table struture only... when i do = "select *=20 ..." is returned all columns but zero tuples...
 
thanks again
F=E1bio = Gibon
 
----- Original Message -----
From:=20 Fabr=EDzio de Royes Mello =
Sent: Wednesday, October 06, = 2010 12:16=20 PM
Subject: Re: [ADMIN] Lost = file



2010/10/6 F=E1bio Gibon - Comex System <gibon@comexsystem.com.br>=
Hi everybody,
        i = lost one=20 file in my file system, it's file reference the one user table = (table=20 "x")... Are there some option to recover this table? (without any = backup and=20 database isn't archive mode).
 
 

Hi F=E1bio,

If you have no backup I do not see how to recover it, but you can = recreate the table (only structure) by querying the system catalog (if = it is=20 working of course). 

Use a similar query do see some information about the columns of=20 table:

SELECT * FROM information_schema.columns WHERE table_name =3D = 'x';
To more information about system catalog see [1] and [2].

[1] http://www.postgresql.org/docs/current/interactive/catalogs.html
[2] http://www.postgresql.org/docs/current/interactive/information= -schema.html


--
Fabr=EDzio de Royes Mello
>> Blog sobre TI: http://fabriziomello.blogspot.com
>> Perfil Linkedin: http://br.linkedin.com/in/fabriziomello

------=_NextPart_000_00F4_01CB6551.F3696C80--