Re: checking existence of a table before updating its SERIAL

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Matthias Apitz <guru(at)unixarea(dot)de>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: checking existence of a table before updating its SERIAL
Date: 2020-06-08 08:05:59
Message-ID: CAKFQuwbGyR7kcdySrcu8JMjeFzbU9YuPUcXiLX-SmpctwsvXKQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Monday, June 8, 2020, Matthias Apitz <guru(at)unixarea(dot)de> wrote:

>
> Can some kind soul help me with doing a test for the existence of the
> table to avoid the error message about non existing relation?
>

https://www.postgresql.org/docs/12/catalogs-overview.html

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thorsten Schöning 2020-06-08 08:14:09 Concurrenctly running CREATE TEMP TABLE IF NOT EXISTS [...] AS [...]
Previous Message Matthias Apitz 2020-06-08 07:53:58 checking existence of a table before updating its SERIAL