create table as vs. create table like - Mailing list pgsql-general

From Ivan Sergio Borgonovo
Subject create table as vs. create table like
Date
Msg-id 20081212130229.33909514@dawn.webthatworks.it
Whole thread Raw
Responses Re: create table as vs. create table like  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-general
I just noticed something I found "unexpected".

CREATE TABLE LIKE let you specify DEFAULT and Co.
CREATE TABLE AS doesn't.

Is there a one step way to clone a table?

--
Ivan Sergio Borgonovo
http://www.webthatworks.it


pgsql-general by date:

Previous
From: Thomas Kellerer
Date:
Subject: Logg errors during UPDATE
Next
From: Adam Witney
Date:
Subject: Implementing programatic access to a database using dblink?