I have a syntax error in this query:
CREATE TABLE test (LIKE original_table INCLUDING INDEXES);
ERROR : syntax error at or near "INDEXES"
I am using PostgreSQL 8.1 version. Where is the issue in my query?
I have a syntax error in this query:
CREATE TABLE test (LIKE original_table INCLUDING INDEXES);
ERROR : syntax error at or near "INDEXES"
I am using PostgreSQL 8.1 version. Where is the issue in my query?
PostgreSQL 8.1 only supports INCLUDING DEFAULTS.
You'll either have to upgrade to at least 8.3 or create the indices manually.