From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Mauricio Fernandez <mmauricio(dot)fernandez(at)gmail(dot)com> |
Cc: | Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Adding timestamp column |
Date: | 2025-09-03 16:09:07 |
Message-ID: | CAKFQuwYQBr7Fw4S9y_nWNS7A6WnyDXf5HZ+Zq85_3nW4kUxKLg@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Wednesday, September 3, 2025, Mauricio Fernandez <
mmauricio(dot)fernandez(at)gmail(dot)com> 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.
From | Date | Subject | |
---|---|---|---|
Next Message | Holger Jakobs | 2025-09-03 17:46:16 | Re: Adding timestamp column |
Previous Message | Mauricio Fernandez | 2025-09-03 15:50:57 | Adding timestamp column |