public inbox for [email protected]
help / color / mirror / Atom feedFrom: Adrian Klaver <[email protected]>
To: Rich Shepard <[email protected]>
Cc: pgsql-general <[email protected]>
Subject: Re: Syntax error needs explanation
Date: Mon, 14 Jul 2025 12:45:45 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
On 7/14/25 12:38, Rich Shepard wrote:
Reply to list also.
Ccing list.
> On Mon, 14 Jul 2025, Adrian Klaver wrote:
>
>> The above looks like the format 'aligned' output from a query.
>
> Adrian,
>
> I mistyped the script's extension as .txt rather than .sql.
That does not matter, that is more for user convenience in figuring out
what the files are for.
\o test.txt
select * from cell_per;
Then doing:
psql -d production -U postgres -h localhost -p 5432 -f test.sql
Null display is "NULL".
psql:test.sql:82: ERROR: syntax error at or near "line_id"
LINE 1: line_id | category | cell_per | ts_insert |
psql -d production -U postgres -h localhost -p 5432 -f test.txt
Null display is "NULL".
psql:test.txt:82: ERROR: syntax error at or near "line_id"
LINE 1: line_id | category | cell_per | ts_insert | ...
The error is the same as psql just processes the file without regard to
the extension.
>
> Regards,
>
> Rich
--
Adrian Klaver
[email protected]
view thread (6+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Syntax error needs explanation
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox