I'm getting the error:
-su: syntax error near unexpected token '(`
This is when I run the script in shell:
psql -c CREATE TABLE test1 (device SERIAL)
If however I am already in postgres and I run the command below to create a table it works,
CREATE TABLE test (device SERIAL)
Does anyone know how I can fix the problem? Thank you