From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brad White <b55white@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Updating column default values in code
Date: Sat, 07 Jan 2023 00:13:05 -0500
Message-ID: <3392165.1673068385@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA_1=92yKUquYzzevA6XMu9e+9wufL=W4jfu6Mm8m6emV2BnMw@mail.gmail.com>
References: <CAA_1=92yKUquYzzevA6XMu9e+9wufL=W4jfu6Mm8m6emV2BnMw@mail.gmail.com>
Brad White <b55white@gmail.com> writes:
> On Wednesday, December 28, 2022, Brad White <b55white@xxxxxxxxx> wrote:
>> On timestamp fields, I need to update the column default from the current
>> "Now()" to "LOCALTIMESTAMP(0)"
> I'm still suffering here.
I don't understand why a script to generate
ALTER VIEW v ALTER COLUMN c SET DEFAULT LOCALTIMESTAMP(0)
commands doesn't do what you need?
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, b55white@gmail.com
Subject: Re: Updating column default values in code
In-Reply-To: <3392165.1673068385@sss.pgh.pa.us>
References: <CAA_1=92yKUquYzzevA6XMu9e+9wufL=W4jfu6Mm8m6emV2BnMw@mail.gmail.com> <3392165.1673068385@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox