Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axeLl-0007gf-QB for pgsql-hackers@arkaria.postgresql.org; Tue, 03 May 2016 17:43:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axeLl-0007Lp-AD for pgsql-hackers@arkaria.postgresql.org; Tue, 03 May 2016 17:43:09 +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 1axeKO-0004Rs-QY for pgsql-hackers@postgreSQL.org; Tue, 03 May 2016 17:41:44 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1axeKK-0004NH-8d for pgsql-hackers@postgreSQL.org; Tue, 03 May 2016 17:41:44 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [216.155.90.98]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id A3D40400511; Tue, 3 May 2016 10:41:33 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id C67C4438; Tue, 3 May 2016 14:41:31 -0300 (CLST) Date: Tue, 3 May 2016 14:41:31 -0300 From: Alvaro Herrera To: Stephen Frost Cc: Tom Lane , pgsql-hackers@postgreSQL.org Subject: Re: ALTER TABLE lock downgrades have broken pg_upgrade Message-ID: <20160503174131.GA34050@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160503172944.GP10850@tamriel.snowman.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) 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 Stephen Frost wrote: > One other point is that pg_dump goes quite a bit farther back than just > what we currently support (or at least, it tries to). I think that, > generally, that's a good thing, but it does mean we have a lot of cases > that don't get tested nearly as much... > > I was able to get back to 7.4 up and running without too much trouble, > but even that doesn't cover all the cases we have in pg_dump. I'm not > sure if we want to define a "we will support pg_dump back to X" cut-off > or if we want to try and get older versions to run on modern systems, > but it's definitely worth pointing out that we're trying to support much > farther back than what is currently supported in pg_dump today. Yeah. Trying to compile old stuff with current tools (Debian jessie): 7.0's configure does not recognize my system: checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized 7.1's configure fails for accept() detection: checking types of arguments for accept()... configure: error: could not determine argument types 7.2's configure works, but apparently it failed to find flex: make[3]: Entering directory '/home/alvherre/Code/pgsql/source/throwaway/src/backend/bootstrap' *** ERROR: `flex' is missing on your system. It is needed to create the file `bootscanner.c'. You can either get flex from a GNU mirror site or download an official distribution of PostgreSQL, which contains pre-packaged flex output. *** Makefile:60: recipe for target 'bootscanner.c' failed make[3]: *** [bootscanner.c] Error 1 7.3 fails in ecpg preprocessor: make[4]: Entering directory '/home/alvherre/Code/pgsql/source/throwaway/src/interfaces/ecpg/preproc' make -C ../../../../src/port all make[5]: Entering directory '/home/alvherre/Code/pgsql/source/throwaway/src/port' make[5]: Nothing to be done for 'all'. make[5]: Leaving directory '/home/alvherre/Code/pgsql/source/throwaway/src/port' gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-error -I./../include -I. -I../../../../src/include -DMAJOR_VERSION=2 -DMINOR_VERSION=10 -DPATCHLEVEL=0 -DINCLUDE_PATH=\"/usr/local/pgsql/include\" -c -o preproc.o preproc.c In file included from preproc.y:5571:0: pgc.c:170:18: error: conflicting types for ‘yyleng’ extern yy_size_t yyleng; ^ In file included from preproc.y:7:0: extern.h:32:4: note: previous declaration of ‘yyleng’ was here yyleng; ^ In file included from preproc.y:5571:0: pgc.c:304:11: error: conflicting types for ‘yyleng’ yy_size_t yyleng; ^ In file included from preproc.y:7:0: extern.h:32:4: note: previous declaration of ‘yyleng’ was here yyleng; ^ In file included from preproc.y:5571:0: pgc.c:2723:16: warning: ‘input’ defined but not used [-Wunused-function] static int input (void) ^ : recipe for target 'preproc.o' failed make[4]: *** [preproc.o] Error 1 7.4 seems to work fine. I suppose it should be fine to remove pg_dump's support for pre-7.3; people wanting to upgrade from before 7.3 (if any) could use 9.6's pg_dump as an intermediate jump. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers