Re: Updating column default values in code - Mailing list pgsql-general

From Tom Lane
Subject Re: Updating column default values in code
Date
Msg-id 3392165.1673068385@sss.pgh.pa.us
Whole thread Raw
In response to Re: Updating column default values in code  (Brad White <b55white@gmail.com>)
List pgsql-general
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



pgsql-general by date:

Previous
From: Brad White
Date:
Subject: Re: Updating column default values in code
Next
From: Ranjith Paliyath
Date:
Subject: RE: Purging few months old data and vacuuming in production