Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1enlZA-0005Eg-I1 for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Feb 2018 13:33:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enlZ9-0007bq-AY for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Feb 2018 13:33:11 +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.84_2) (envelope-from ) id 1enlZ8-0007bg-Ng for pgsql-bugs@lists.postgresql.org; Mon, 19 Feb 2018 13:33:11 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1enlZ5-0006wA-Hp for pgsql-bugs@postgresql.org; Mon, 19 Feb 2018 13:33:10 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 91DB620DFF for ; Mon, 19 Feb 2018 08:33:04 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 19 Feb 2018 08:33:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imap.cc; h= content-type:date:from:message-id:mime-version:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=prDwq9tXHpypwz0oY MgxjE7Fmt4jbatdZv6hqgw4tbc=; b=KtcgNyOQEzv6YhIZd9x9RDjK1FFzJBK3c EjmD6cDtP5UcHMKMHvJGkMGZD/B3fo24psLHAypTRGgVg5C2RIWnxuX0vdz74wyC aFWT0v5TZOnBMZHAn9zplxqG6wg7wRE3+1UPYxulZos86VT2gOJ0JtLsi/7jj8cm wGxjM7XCMwyI5yMTljqC2Wvjb5eT3f3OvIV/fXHjZ2yn+Z3yWPlX5gBxXJCSzc03 EJhGar/Waqgf32tDzg5XCwJhRzQNvGBlfKQ+WnTzgkGVFaR3F95mtfJ4BUr5Xopu ssXuHyjprqgOwLfGxtZWbxphxxXCIwzwShwSGjPHJnp6LkdW3MQrA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=prDwq9tXHpypwz0oYMgxjE7Fmt4jbatdZv6hqgw4tbc=; b=ncTYfX3h O7V/9hwJmVqLpcFgAPBEUpE1z51o8JIoEWftv3mOht+ApooJlBi8iX/QDWsuBLkg 7vgAr4poPmmhu1CbRIhLzfP7MYfIFDyS8xjO78z5bB+8PYfKkU4JZf/jaL77nZgI FlBE0IRE9B3hww/tJA6UwP2fOcoxWLj0tWFFbJLReX3a/G0cWl+H4E7q+buvjKJu qo3q+U8urEIy0agksr3pSIV73N8SDSRMtYEnQNrrh9P8rX2cUmk+SQTY+pv8tGp8 Vy4i1qGKfQBT52ugLxws2GhTbiJwVFMAKYQ8fu4y180oyyxWe3IfYLDf1Q232Mit GfnfZEJhnx4HeA== X-ME-Sender: Received: from [10.2.33.124] (unknown [185.25.33.73]) by mail.messagingengine.com (Postfix) with ESMTPA id 3428C7E279 for ; Mon, 19 Feb 2018 08:33:04 -0500 (EST) To: pgsql-bugs@postgresql.org From: Alexey Bashtanov Subject: pg_dump sometimes misses sequence parameters Message-ID: Date: Mon, 19 Feb 2018 13:32:56 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------C9CECCAE45D078B1A599A97B" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------C9CECCAE45D078B1A599A97B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit The bug affects REL_10_STABLE and master branches. 9.4..9.6 are unaffected. To reproduce: psql -c 'DROP SEQUENCE IF EXISTS foo' psql -c 'CREATE SEQUENCE foo INCREMENT BY -1 MINVALUE -9223372036854775808 MAXVALUE 9223372036854775807' pg_dump -t foo > tmp psql -c 'DROP SEQUENCE foo' psql