Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 23rd, 2005, 02:21 AM
Igor Kryltsov
Guest
 
Posts: n/a
Default Upgrade 7.3.3 to 7.4.5

Hi,

I upgraded recently DB and found that some columns with type "timestamp"
changed default values from now() to:
receipt_date | timestamp with time zone | not null default
'2004-09-29 09:58:03.010678+10'::timestamp with time zone

,where time is a time when psql -U postgres template1 < db_backup.sql was
executed.

I want to underline not all "timestamp default now()" columns but only some
of them.

Any ideas?


Thank you,

Igor






  #2  
Old November 23rd, 2005, 02:22 AM
Tom Lane
Guest
 
Posts: n/a
Default Re: Upgrade 7.3.3 to 7.4.5

"Igor Kryltsov" <kryltsov@yahoo.com> writes:[color=blue]
> I upgraded recently DB and found that some columns with type "timestamp"
> changed default values from now() to:
> receipt_date | timestamp with time zone | not null default
> '2004-09-29 09:58:03.010678+10'::timestamp with time zone[/color]

Those were not defined as "default now()". More likely they were
defined as "default 'now'", which doesn't work anymore. See the release
notes.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles