Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daJHz-0000k6-Ed for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Jul 2017 10:11:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1daJHy-0003MU-RP for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Jul 2017 10:11:34 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1daJGQ-0000ZA-LQ for pgsql-hackers@postgresql.org; Wed, 26 Jul 2017 10:09:58 +0000 Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1daJGN-0006gW-36 for pgsql-hackers@postgresql.org; Wed, 26 Jul 2017 10:09:57 +0000 Received: by mail-pf0-x22a.google.com with SMTP id z129so29733765pfb.3 for ; Wed, 26 Jul 2017 03:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=8zHRZQRzpXjtAEqJdVSi4DNHDm/RSywgvz3V62Pj1nM=; b=ErGHJzP0Y1NzUfU+XnfW7+miSfHmpud1aeftOAF3qLryi2vyDnDNa8FZL9YL2rdr5Q FJ7neg058RzxPH43HU895Uw0xwhABU65OoaTHrsiBkx4oiGmxJxl/F2adk4D63NqglbG Je6wjr0ZaDFmRnxWCow5/vcakgTAit4JNJac29ZGrLjB2nrB3J/NohgybVtJ31nQhOnk sfJO+rgCe8Iifs239cb+Ehwt0xgf90cPfJiBS/h8Cn1cUxh8r6ALg/U5CdEyZ7KmFIcM YTRaF4AKpRf2JZSgLB6dwjuO4jMWk77/hCg2KZZAzdWQQlOK8LMLIaBB/LRYUWDx38/g Szow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=8zHRZQRzpXjtAEqJdVSi4DNHDm/RSywgvz3V62Pj1nM=; b=mv6KF4n6JqgiRaOiaB7ls5itFUMaxAl3otTkx2tQ2Il7kPJYGJMsJBkZOFxVvigdPk PtY9+SXuYLBN+VRRDxZsHH1T2U3jRM7uD3CH7J8QQgsXmFm+ic30g8QRr47IMqJLq4gr GZYKN3tF8WwLNTXidcbL/HWsxnGcl0vtBj6BLqrc5tJqR0rD98Tx8r9Soc2gXv8c0r12 cst1pzPambgQRGn0fSKxKmKR8MonEx/3auoharjLemzL6jkgb3lxRNgbzbpfCzTtcw+u H/CeirEfUbOJJJ3oy3s1qKsT3r1ZQWq7tE6vECeeLB36LV4/Fb353R529qzeNwiRhqkh BfJg== X-Gm-Message-State: AIVw110V4dTcsareuazuzTDuJIIxz3FyJ0A+TmgD3xnE0hg++dBbgKhX OnIpdWlxyWZL4n9Zn9bYOkVSifAYallnuoL45FfZjcubEghjoLcJNrJOjMJjS716O2qnVuFBFo2 B+7Dl9+37+zRUK+ihkzKzvj1sYkqQfgs1/RH9SEzGr+xayOH7r9jQhFYC7HvfQDewDovZS9RT2Q == X-Received: by 10.99.44.208 with SMTP id s199mr337194pgs.447.1501063793855; Wed, 26 Jul 2017 03:09:53 -0700 (PDT) Received: from localhost.localdomain ([59.162.78.200]) by smtp.gmail.com with ESMTPSA id e184sm28575498pfe.172.2017.07.26.03.09.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jul 2017 03:09:53 -0700 (PDT) To: PostgreSQL-development From: tushar Subject: pg_upgrade failed with error - ERROR: column "a" in child table must be marked NOT NULL Message-ID: Date: Wed, 26 Jul 2017 15:39:51 +0530 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org v9.5/9.6 create these objects - CREATE TABLE constraint_rename_test (a int CONSTRAINT con1 CHECK (a > 0), b int, c int); CREATE TABLE constraint_rename_test2 (a int CONSTRAINT con1 CHECK (a > 0), d int) INHERITS (constraint_rename_test); ALTER TABLE constraint_rename_test ADD CONSTRAINT con3 PRIMARY KEY (a); v9.6/v10 - run pg_upgrade pg_restore: creating COMMENT "SCHEMA "public"" pg_restore: creating TABLE "public.constraint_rename_test" pg_restore: creating TABLE "public.constraint_rename_test2" pg_restore: [archiver (db)] Error while PROCESSING TOC: pg_restore: [archiver (db)] Error from TOC entry 351; 1259 16388 TABLE constraint_rename_test2 edb pg_restore: [archiver (db)] could not execute query: ERROR: column "a" in child table must be marked NOT NULL Command was: -- For binary upgrade, must preserve pg_type oid SELECT pg_catalog.binary_upgrade_set_next_pg_type_oid('16390'::pg_catalog.oid); manually i am able to create all these objects . -- regards,tushar EnterpriseDB https://www.enterprisedb.com/ The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers