pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Remove deprecated abstime, reltime, tinterval datatypes.
Date: Thu, 11 Oct 2018 16:54:41 -0400
Message-ID: <81685d0e-ed37-428a-2c39-362c524824e1@2ndQuadrant.com> (raw)
In-Reply-To: <E1gAgEX-0003E0-B7@gemulon.postgresql.org>
References: <E1gAgEX-0003E0-B7@gemulon.postgresql.org>



On 10/11/2018 03:02 PM, Andres Freund wrote:
> Remove deprecated abstime, reltime, tinterval datatypes.
>
> These types have been deprecated for a *long* time.


This has broken pg_upgrade from previous versions:

    pg_restore: [archiver (db)] Error while PROCESSING TOC:
    pg_restore: [archiver (db)] Error from TOC entry 212; 1259 16891
    TABLE abstime_tbl buildfarm
    pg_restore: [archiver (db)] could not execute query: ERROR:  type
    "abstime" does not exist
    LINE 14:     "f1" "abstime"
                       ^
         Command was:
    -- For binary upgrade, must preserve pg_type oid
    SELECT
    pg_catalog.binary_upgrade_set_next_pg_type_oid('16893'::pg_catalog.oid);


    -- For binary upgrade, must preserve pg_type array oid
    SELECT
    pg_catalog.binary_upgrade_set_next_array_pg_type_oid('16892'::pg_catalog.oid);


    -- For binary upgrade, must preserve pg_class oids
    SELECT
    pg_catalog.binary_upgrade_set_next_heap_pg_class_oid('16891'::pg_catalog.oid);

    CREATE TABLE "public"."abstime_tbl" (
         "f1" "abstime"
    );

    -- For binary upgrade, set heap's relfrozenxid and relminmxid
    UPDATE pg_catalog.pg_class
    SET relfrozenxid = '2643', relminmxid = '1'
    WHERE oid = '"public"."abstime_tbl"'::pg_catalog.regclass;




cheers

andrew

-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (3+ messages)  latest in thread

Message-ID: <81685d0e-ed37-428a-2c39-362c524824e1@2ndQuadrant.com>
Permalink:  ../81685d0e-ed37-428a-2c39-362c524824e1@2ndQuadrant.com/
Also on:    postgresql.org/message-id/81685d0e-ed37-428a-2c39-362c524824e1@2ndQuadrant.com

 · 

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 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-committers@postgresql.org
  Cc: andrew.dunstan@2ndquadrant.com, andres@anarazel.de
  Subject: Re: pgsql: Remove deprecated abstime, reltime, tinterval datatypes.
  In-Reply-To: <81685d0e-ed37-428a-2c39-362c524824e1@2ndQuadrant.com>
  References: <E1gAgEX-0003E0-B7@gemulon.postgresql.org> <81685d0e-ed37-428a-2c39-362c524824e1@2ndQuadrant.com>

* 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