PgAdmin errors - Mailing list pgsql-general

From Hall, Samuel L (Sam)
Subject PgAdmin errors
Date
Msg-id 69751890A64B3241A83BDB52A30BF29D1936F5B6@US70UWXCHMBA02.zam.alcatel-lucent.com
Whole thread Raw
Responses Re: PgAdmin errors  (John R Pierce <pierce@hogranch.com>)
List pgsql-general

When I try to run SQL from PgAdmin : CREATE TABLE tse_history_old LIKE tse_history INCLUDING ALL WITH OIDS

I get this  error

ERROR:  syntax error at or near "LIKE"

LINE 2: CREATE TABLE tse_history_old LIKE tse_history INCLUDING ALL ...

 

testing, I find that using the word “LIKE” always causes errors

 

"PostgreSQL 9.3.0 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3, 64-bit"

Running PgAdmin on Windows 7 64 bit

 

What I need to do is copy a table completely, all data, indexes, keys

 

pgsql-general by date:

Previous
From: Tim Spencer
Date:
Subject: Re: Disk Encryption in Production
Next
From: Bruce Momjian
Date:
Subject: Re: To monitor the number of PostgreSQL database connections?