Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aHEro-0006VG-Rf for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Jan 2016 18:00:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aHErn-0005s8-KL for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Jan 2016 18:00:55 +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) (envelope-from ) id 1aHEqU-0004Lm-0m for pgsql-hackers@postgresql.org; Thu, 07 Jan 2016 17:59:34 +0000 Received: from mail-bl2on0063.outbound.protection.outlook.com ([65.55.169.63] helo=na01-bl2-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aHEqO-0001hC-7l for pgsql-hackers@postgresql.org; Thu, 07 Jan 2016 17:59:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=BlueTreble.onmicrosoft.com; s=selector1-bluetreble-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=xpvpYUcVTtwJqbpU3v2QU7b2GpOVcKFUnjXV863IoIo=; b=k3EyMVCHPj/lxqzBvezTsNz4HInAcLzoMjPFgFnNoGvbD5TjrvHr3I1BM4ajE/oAyvNtdrxySe0NZ+KUL1uHJPywNXAFca7cZ1RQZkUhJTQNzrkozRKCOgSgWd4NB1Q9Qx/16ZUNaZu6rd83qCIVsoF8wBlZ+teNnJ9YxXfFPtU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jim.Nasby@bluetreble.com; Received: from decina.local (70.113.16.71) by SN1PR11MB0685.namprd11.prod.outlook.com (10.163.207.143) with Microsoft SMTP Server (TLS) id 15.1.361.13; Thu, 7 Jan 2016 17:59:22 +0000 Subject: Re: Very confusing installcheck behavior with PGXS To: Tom Lane References: <56899F36.9000607@BlueTreble.com> <5651.1452102882@sss.pgh.pa.us> <568E7829.2050805@BlueTreble.com> <12108.1452178021@sss.pgh.pa.us> <568E7B4A.4080003@BlueTreble.com> <13036.1452179541@sss.pgh.pa.us> <568E8317.3000806@BlueTreble.com> <29567.1452182165@sss.pgh.pa.us> <568EA3A6.7080309@BlueTreble.com> <11232.1452188946@sss.pgh.pa.us> CC: Peter Eisentraut , Robert Haas , Pg Hackers From: Jim Nasby Message-ID: <568EA775.2080509@BlueTreble.com> Date: Thu, 7 Jan 2016 11:59:17 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <11232.1452188946@sss.pgh.pa.us> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [70.113.16.71] X-ClientProxiedBy: BY2PR1001CA0081.namprd10.prod.outlook.com (25.164.163.49) To SN1PR11MB0685.namprd11.prod.outlook.com (25.163.207.143) X-Microsoft-Exchange-Diagnostics: 1; SN1PR11MB0685; 2:/1UYmzztGBL41jH3Chso/Vh1loNTnHx6W6X3o9tfmf49k3jkXNjD9gX99aXQHO42xboMNr+ETi1s5fwADxivVo1CVV4XCGFXgCuMA9PNOwzW9Edw6FzdK1FfaUqosrMnb78WTUCroOjDbSHOdBrSEQ==; 3:IsKjOqRh7sW0tYJKaFvT4bIfN9eXrAjtxTvHNXqqdxeooBplicnMLO9sFEkTAYrBWpoG1Sq5+KElyORRLg0hgO2wz/PKOv9FOCcdqCa3g9pChpHUuJmACKHimvU//BiI; 25:1s3IEf7BOIFAI5xmmU4C7JP7TU2qjt9LZm2UwLrd/Pmj2NOWGEyEekh2j9IOFNcIKODjNc6r+Pd0f2ht76r1vLW7y3Bd6srayOH1FKewYRL1UbsV5+tvs6kbGU9B0uBk8hfQ3PYKA1SfOcy0+xiQlsDJrtXMT1Ox357VHnfiI4x0kI1SDYWzkxXVh/ZSfCxrYkVYDrqhNj+Vp7FXBuCLK5lhvKfr7i8dG1B8nOop3+nbjedufkyKQwIATHqboisH; 20:+2yDxPjC368OgFLX0vPJ8ZOoyBXBXsTQtYxFuVmhRb0FNdH4WiykktcMMDIDYddNFJcrZ4CyeRPdM29ro59DrYOlXUmflW8QG0XPQDiY5d8bpIhhLyNmpMBERkLJqfds1o3IyeaCQmDPHP+Wr58gKINHBFJNjzSmT7kVsAJ7e38= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR11MB0685; X-MS-Office365-Filtering-Correlation-Id: 4403050f-fd24-44fc-78c9-08d3178c4674 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(10201501046)(3002001); SRVR:SN1PR11MB0685; BCL:0; PCL:0; RULEID:; SRVR:SN1PR11MB0685; X-Microsoft-Exchange-Diagnostics: 1; SN1PR11MB0685; 4:nu6oyc/hnHWi+n7ZgfkQd13KinCq6HpaWGoAUdrnuB/JwSLyLw0Jq1FG0rzl+Gx75clwNZBEQZgOcbUXI9ordTrs5EKf06YHox8Kg7YmhsVYxEVz9Ep8t+V7SdjggA9ffLsLrQ+gNrycwnYQ4c4Qvcfkwjttsr+GCr9Bm51Q+Uywhe3K7dEbob20oDWViFRURHyEK8jwTsbqpuHT9uXcVxrVsmj4ipYckLtvNxDH3TC1S9XHphDnNV4FQPUMbOPL1gLSac3wW+JG8dCnl1SqXMF8FTVV0+syhpZzfOZ4zADDlNK6KOfZ5NtuT3GDOdxGYUtluU5duk91DGggdvAbJeBeAjQ4ze2B704cdlofEA+QUcA1i4I+zTGLV9CCp7v5 X-Forefront-PRVS: 0814A2C7A3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(24454002)(189002)(377454003)(199003)(479174004)(97736004)(4001350100001)(50466002)(36756003)(87266999)(54356999)(5004730100002)(1096002)(65816999)(19580395003)(19580405001)(80316001)(230700001)(101416001)(59896002)(586003)(83506001)(33656002)(93886004)(5008740100001)(64126003)(2906002)(6116002)(3846002)(189998001)(122386002)(110136002)(87976001)(47776003)(5001960100002)(50986999)(77096005)(65806001)(76176999)(65956001)(66066001)(40100003)(42186005)(86362001)(4326007)(106356001)(105586002)(23746002)(2950100001)(15975445007)(92566002)(81156007)(85282002)(336755003)(18886065003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR11MB0685; H:decina.local; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: bluetreble.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; SN1PR11MB0685; 23:EqwrCRAsZnmgweSd++d0V3OtahoxGQISgluHV?= =?Windows-1252?Q?GlHpK6Cjfg6cwLCpccwWgv2dpBkj6aesMo2+fzt4v8L6C779TLcp5Epa?= =?Windows-1252?Q?hmHkJtYne0vDnxHMhEULeeNC/F5KWbOvDCbKioduievqfbHpyV8kBe3Q?= =?Windows-1252?Q?+C7+wFiQHkFD/kscPsO/CO3e79Tv9BU35lqZ+2yi+7PPGudAzGaWLWRQ?= =?Windows-1252?Q?Uj1VYhKfdSrAj/ASsZJ5sPunC2lXbl0s7CscD1sG1q3e6O/jPdHGic1G?= =?Windows-1252?Q?SZ2SqvIsSZalWdMtyyh2/8dW79DIRcDHLMt0YNmtZw0u3t+OcRnJfx9g?= =?Windows-1252?Q?6GaP9OqQLIVEZ/jZA2avbcYI2DfHYB7VPvk4Q9rm9hoMbVGX27JNy7U7?= =?Windows-1252?Q?EZVtGeOZTODNnj0bIV3ImEzv+UshHDgqRvwOyOzYfVqr8zYpPMxmx1Jl?= =?Windows-1252?Q?eX1pNnFSJb3cGm/e6QYOhxz3vmJHMuBh1VlsHbMJdJMgh8L/17XgYy9y?= =?Windows-1252?Q?714xIBuh/n3/UgMzu2dJR/QuPXkz/YFlMdOQ5zFGSkDU6QnzDe10gz0S?= =?Windows-1252?Q?pC/O/LIK0a5KdItV1zCcrZb4vnnWwjaArwyFIpHXKOyB/wOMlcrZgK/c?= =?Windows-1252?Q?G1v0LwPOajtsGJI+Gdry2Nwgwt5tY7IW7/lpfBrtuZCpSEDUrXWHOKpR?= =?Windows-1252?Q?wscPtC3ywCnjvn231ON3Mn3KeiLpGi+Sz136UPqhW+3tBUVREar8u5Uq?= =?Windows-1252?Q?La038HaxsOBWBcghZr51vcAxOZprVOmC9UKucJUpah1KKL+jynTrmrv5?= =?Windows-1252?Q?dzvFsCnlGfIk5W6FYzIeHc99T4eduvq7EAMGWVWg9aydr45NfUXzsBoU?= =?Windows-1252?Q?g2Dj4IMKJhFoQCAu6gaXtIa4DIQ4XBHCE5D0ScVV01kGqFXIawnjFunt?= =?Windows-1252?Q?QMVzhdOC3VtpbtNv7LtBPuiMql9joJjxfAsFvtboGkMA2FjWakraR2Px?= =?Windows-1252?Q?iD5LX73FJjgCeHcp7z/RK/grn/WNnmMi4X5Lmc5TwE6XBg0QWKE1XYqx?= =?Windows-1252?Q?aH1rCqUYOmWG6KmtIEeoAbXESOR5GLBaOP5pdfYJz/cQbCjyClhQ+uh0?= =?Windows-1252?Q?YkFoB2q3PIFH04b+rvgR6Y/bKiZems7IMZPZ4CK4kOHCaM9wqsNYO2Pi?= =?Windows-1252?Q?pX2UM4hXchOGGjVhNLPRVI1A041GdX5gUXkXDY/6N/wjfAd3su/bPQBJ?= =?Windows-1252?Q?b+cjW6o6aXgYajAcjQvM6FXqnAuKiZoiiZmPMpQooKkNeg5r/itjR1RE?= =?Windows-1252?Q?HhdUYvZYAri6ucD9XdStHT2KJvU8BBoEr4TYxooXwMokbesWRQ6LA9dY?= =?Windows-1252?Q?4JSR9yn06EMIOwNby4IxlOaRwHGIudT+Jwfx4Bc40nqDKkyQy85Uc0TO?= =?Windows-1252?Q?A1ESbax+Z7O55Ol5O4EWrOjteRqUT7KianLSNs2eW1JI9l39H1o5Kdq9?= =?Windows-1252?Q?Wu04Iy/2+p++JahJac5k6+tZO75OK4aVpdpctZC0YRV+YJj5w=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN1PR11MB0685; 5:XhuD9kdbvuU1R9E7IRpNPBmDfQSMbgYPRFxLL8HrgjsROB/ctBnnhyQNX1USZKP2al975Gtq6dZsC7LjNJ2U4DgpGuVOAzDgOfUNVbghSRsysaTHj+XpXO17jQJ17HON+JKc85eBE45OoJqn80iTpw==; 24:UYsns9vyrTEgaD10xX/JB/z1RgY0x+abfnoFuSDAxBsb2CX305e/3zONqrQZQUfzOFT+//Pbau3qPZV7jXytLToCqIoZ3RC+6CRX2t1fqEc= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: bluetreble.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2016 17:59:22.8176 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR11MB0685 X-Pg-Spam-Score: -1.9 (-) 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 On 1/7/16 11:49 AM, Tom Lane wrote: > Jim Nasby writes: >> input and output are used in only 3 places in the whole tree[1], so >> maybe the best thing to do is just rip support for that out of >> pg_regress and handle it some other way. > > [ raised eyebrow ] It's not apparent to me that moving it someplace else > would reduce the net cruft any. What it would do is de-mystify that part of pg_regress. I agree that vpath is a particular problem for input/ and output/, but it's even worse when most everyone thinks sql/ and expected/ are inputs to pg_regress, and not potential outputs. > The real problem is that Peter just did the minimum amount of work > to get VPATH to work at all, not to get it to work in a non-surprising > way. We really need this code to be explicitly VPATH-aware, I think, > rather than overloading the inputdir and outputdir concepts in > multiple ways. Agreed, especially because if it's not then if you try to use both input/ and sql/ or output/ and expected/ you're not going to get the results you'd like. If we want to keep input/ and output/ inside pg_regress then I think what needs to happen in a vpath build is to first create $vpath/sql and $vpath/expected, copy anything from $(uh... source?)/sql and /expected there, and then process /input and /output (and deal with any duplicate file references). -- Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX Experts in Analytics, Data Architecture and PostgreSQL Data in Trouble? Get it in Treble! http://BlueTreble.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers