CREATE TABLE AS does not support IF NOT EXISTS? - Mailing list pgsql-general

From David Waddy
Subject CREATE TABLE AS does not support IF NOT EXISTS?
Date
Msg-id CAD3FPx_6RieNMmekdohrXAX3rJwfOt34F0M-WFoB-JXrTKD7Fg@mail.gmail.com
Whole thread Raw
Responses Re: CREATE TABLE AS does not support IF NOT EXISTS?
List pgsql-general

This works:
CREATE TEMP TABLE temp_medical_summary AS (SELECT * from bov.medical_summary)

This gives an error:
CREATE TEMP TABLE IF NOT EXISTS temp_medical_summary AS (SELECT * from bov.medical_summary)

It would seem that CREATE TABLE AS does not support IF NOT EXISTS. Is this true?

David Waddy

pgsql-general by date:

Previous
From: Thom Brown
Date:
Subject: Re: Regex match not back-referencing in function
Next
From: Adrian Klaver
Date:
Subject: Re: CREATE TABLE AS does not support IF NOT EXISTS?