Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fZyuU-00029v-04 for pgsql-general@arkaria.postgresql.org; Mon, 02 Jul 2018 13:30:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fZyuR-0001lk-Ss for pgsql-general@arkaria.postgresql.org; Mon, 02 Jul 2018 13:30:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fZyuR-0001lY-LT for pgsql-general@lists.postgresql.org; Mon, 02 Jul 2018 13:30:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fZyuO-0003LF-PO for pgsql-general@postgresql.org; Mon, 02 Jul 2018 13:30:27 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w62DUK5Y031415; Mon, 2 Jul 2018 09:30:20 -0400 From: Tom Lane To: =?UTF-8?Q?=C5=81ukasz_Jarych?= cc: "pgsql-general@postgresql.org >> PG-General Mailing List" Subject: Re: Cloning schemas In-reply-to: References: Comments: In-reply-to =?UTF-8?Q?=C5=81ukasz_Jarych?= message dated "Mon, 02 Jul 2018 13:30:43 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <63459.1530538220.1@sss.pgh.pa.us> Date: Mon, 02 Jul 2018 09:30:20 -0400 Message-ID: <63460.1530538220@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?UTF-8?Q?=C5=81ukasz_Jarych?= writes: > I am trying to use : > "select * from clone_schema('public','Version8',true) but i am getting > error: > "Column "max_value" does not exist. > LINE 1: SELECT last_value, max_value, start_value, increment_by, min... > HINT: Maybe you wanted to point to column " "audit_sq.last_value"? > QUERY: SELECT last_value, max_value, start_value, increment_by, min_value, > cache_value, log_cnt, is_cycled, is_called FROM public.audit_sq; > CONTEXT: function PL/pgSQL clone_schema(text,text,boolean), row 66 in > EXECUTE I guess audit_sq is a sequence? It looks to me like this function has not been taught about the changes in sequence metadata in PG v10. You need to update it, or talk to its author about an update. regards, tom lane