public inbox for [email protected]
help / color / mirror / Atom feedFrom: David G. Johnston <[email protected]>
To: Mauricio Fernandez <[email protected]>
Cc: Pgsql-admin <[email protected]>
Subject: Re: Adding timestamp column
Date: Wed, 3 Sep 2025 09:09:07 -0700
Message-ID: <CAKFQuwYQBr7Fw4S9y_nWNS7A6WnyDXf5HZ+Zq85_3nW4kUxKLg@mail.gmail.com> (raw)
In-Reply-To: <CAMdfv4XEHpa8XSYf1C5EG5CE_VbcpptxiijUNOzj3HEvwLOaxQ@mail.gmail.com>
References: <CAMdfv4XEHpa8XSYf1C5EG5CE_VbcpptxiijUNOzj3HEvwLOaxQ@mail.gmail.com>
On Wednesday, September 3, 2025, Mauricio Fernandez <
[email protected]> wrote:
>
>
> But, when I want to alter the table I get a syntax error
>
> alter table MDL_LOGSTORE_STANDARD_LOG
> add column datecreated timestamp
> generated always as ( timezone ('America/Santiago'::text,
> to_timestamp(timecreated::double precision)));
>
> SQL Error [42601]: ERROR: syntax error at end of input
> Position: 185
>
>
Unless you are experimenting with v18 the docs clearly indicate the keyword
“stored” is mandatory (since the implemented in 18 virtual is the default).
David J.
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], [email protected]
Subject: Re: Adding timestamp column
In-Reply-To: <CAKFQuwYQBr7Fw4S9y_nWNS7A6WnyDXf5HZ+Zq85_3nW4kUxKLg@mail.gmail.com>
* 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