X-Original-To: pgsql-sql@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id A4DF6924D6D for ; Tue, 27 May 2003 11:24:25 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 98848-07 for ; Tue, 27 May 2003 11:24:24 -0400 (EDT) Received: from vianet-express.com.br (unknown [200.161.16.186]) by developer.postgresql.org (Postfix) with ESMTP id A4A31924D8F for ; Tue, 27 May 2003 11:24:23 -0400 (EDT) Received: from netterm ([192.168.1.7]) by vianet-express.com.br (8.11.4/8.11.4) with SMTP id h4RFGlk26125; Tue, 27 May 2003 12:16:48 -0300 Message-ID: <01cd01c32465$7356c8b0$0701a8c0@netterm> From: "Eric Anderson Vianet SAO" To: "Tom Lane" Cc: References: <001101c31fb8$ebdb30c0$0701a8c0@netterm> <3ECE195A.7060209@Yahoo.com> <004901c3212e$8919fda0$0701a8c0@netterm> <3ECFE017.7060800@Yahoo.com> <00e001c32453$2f8f45b0$0701a8c0@netterm> <15000.1054045212@sss.pgh.pa.us> Subject: Re: discover a toast table name Date: Tue, 27 May 2003 12:34:23 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/514 X-Sequence-Number: 13679 when i try that i´v got an error ERROR: "pg_toast_26474986" is a system table. call REINDEX under standalone postgres with -O -P options so I kill postmaster and up it standalone. but the reindex command doesn´t have options. and postmaster doesn´t have these ones too. tnx. Eric Anderson Martins Miranda Net Admin @ Via Net SAO ----- Original Message ----- From: "Tom Lane" To: "Eric Anderson Vianet SAO" Cc: Sent: Tuesday, May 27, 2003 11:20 AM Subject: Re: [SQL] discover a toast table name > "Eric Anderson Vianet SAO" writes: > > How can I discover which toast table referenced to a phisic table? > > Look at the base table's pg_class row. reltoastrelid is the OID of the > corresponding toast table. So, for example, if I thought "text_tbl" had > such a problem: > > regression=# select relname from pg_class where > regression-# oid = (select reltoastrelid from pg_class where relname = 'text_tbl'); > relname > ----------------- > pg_toast_163219 > (1 row) > > regression=# reindex table pg_toast.pg_toast_163219; > REINDEX > regression=# > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)