0

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?

1
  • 2
    Why you are you using such an outdated version? You should really upgrade to a version that is under maintenance. Commented Jun 15, 2015 at 13:05

1 Answer 1

2

PostgreSQL 8.1 only supports INCLUDING DEFAULTS.

You'll either have to upgrade to at least 8.3 or create the indices manually.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.