Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D0D242E2E5E for ; Sat, 29 Dec 2007 15:35:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 73794-07 for ; Sat, 29 Dec 2007 15:35:47 -0400 (AST) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by postgresql.org (Postfix) with ESMTP id 694052E024F for ; Sat, 29 Dec 2007 15:34:01 -0400 (AST) Received: by fk-out-0910.google.com with SMTP id b27so5112092fka.3 for ; Sat, 29 Dec 2007 11:34:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=at0idNB9z6oQQXfJYQmLNHvVOHSYiXZVEnLQR2ug848=; b=xSC0tf5TWam3JrtG1UgQ6kPRw1VW7hsBIhYywI6DgY7ZFZ0aaPKKTlTs6M5AtNKDSJ4O8a3ci5xP7h3RYssfV6h57MjqnTOsma9D4HVK05D/a4DcJyrsTcy2XM4DzfyNoLEVQTMOK46B7KMnHKqJIPn7jOEmhZgPIRhZ2I5oxPs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JR1BakykSBVqE/HWSRNuDgIQldlSxyeP8ikoanaW+kPkj0JCSGUFyKyHb/S1WruKqkVkiEZe1fYcaWKhqILGi5InvXoTDaMbftnnTMJfjWHS4uEqpRpHWyGeq2/9NPEYIIyDgCxX/V4F9B9Pi6adocEum87zyenNFq6EqDgPOVA= Received: by 10.78.156.6 with SMTP id d6mr11233810hue.22.1198956839013; Sat, 29 Dec 2007 11:33:59 -0800 (PST) Received: by 10.78.35.10 with HTTP; Sat, 29 Dec 2007 11:33:58 -0800 (PST) Message-ID: <162867790712291133n1bb6a6fcqeb1234df1576dd8c@mail.gmail.com> Date: Sat, 29 Dec 2007 20:33:58 +0100 From: "Pavel Stehule" To: "Marcin Krawczyk" Subject: Re: temp table existence Cc: pgsql-sql@postgresql.org In-Reply-To: <95f6bf9b0712291116lc3c1df0o978922176e98f8d7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <95f6bf9b0712291116lc3c1df0o978922176e98f8d7@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/153 X-Sequence-Number: 29845 Hello On 29/12/2007, Marcin Krawczyk wrote: > Hi all. Is there a way to determine the existence of a TEMP TABLE? I need to > check i it exists before I create it. > Doing simple check on pg_class or pg_tables is > not enough because there may be other such tables created in other sessions. > Or maybe anyone knows the identification (apart from 'others') of error to > trap it with EXCEPTION clause? > http://www.pgsql.cz/index.php/Automatic_execution_plan_caching_in_PL/pgSQL Regards Pavel Stehule