Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aHEc0-0005ai-CX for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Jan 2016 17:44:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aHEbz-0007Wg-VJ for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Jan 2016 17:44:36 +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) (envelope-from ) id 1aHEae-0005vK-RX for pgsql-hackers@postgresql.org; Thu, 07 Jan 2016 17:43:13 +0000 Received: from mail-bn1on0066.outbound.protection.outlook.com ([157.56.110.66] helo=na01-bn1-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aHEab-0007Qu-HF for pgsql-hackers@postgresql.org; Thu, 07 Jan 2016 17:43:11 +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=j3envORSox2KXQ2GjWGIT0ILaVYIJe3JO5Ps+AlnLAA=; b=I5MxsA3GWToZrrc+FynYR64aS2smDsWOxyeIAP24n05CzGl8R7qLFENzRCVgdGhM9BvMz0yNGPq2L8WQt0gyprlxvDxtJHfiMq8YsybMSmFpbDDJXUv/3+auUSGiBMXlfsekxU29IjhW6fqxHRdO1f91krp6yg0L6xpyK3CmZPc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jim.Nasby@bluetreble.com; Received: from decina.local (70.113.16.71) by CY1PR11MB0684.namprd11.prod.outlook.com (10.163.236.22) with Microsoft SMTP Server (TLS) id 15.1.361.13; Thu, 7 Jan 2016 17:43:05 +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> CC: Peter Eisentraut , Robert Haas , Pg Hackers From: Jim Nasby Message-ID: <568EA3A6.7080309@BlueTreble.com> Date: Thu, 7 Jan 2016 11:43:02 -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: <29567.1452182165@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: SN2PR10CA0002.namprd10.prod.outlook.com (25.160.12.140) To CY1PR11MB0684.namprd11.prod.outlook.com (25.163.236.22) X-Microsoft-Exchange-Diagnostics: 1; CY1PR11MB0684; 2:hhuya8Qc0AIW9crBdeo9SkNBDxvUFeNXHze4W7RSWPdCRYX/YCO1CPQNqcVzhA6x2u+tV0fVBPpB6Ih6wDglSp1qp1uCYLo/Jp4CVBEt4srIZQwo5ebSOJyyzRzJ3Ym9WZFaya+3nn+N5vgGdkfZPQ==; 3:4mbDaTYJb0zfkuWKGyRc2AbiBUmpqcfropCl0jPYa/oTTJpeWMkLtIiiMgacG7yhcPdBDGkStXhHv42aAzRI7nU03BBqD8Rsh+2zsDZi3ax4R0GoGVehUdjmsQ+i6/lH; 25:8fAhG1ZloSxkdDjUVvv2eI0TsYdIEz5sA1HR0SmhVSDVXP93tobBP/kAUzfMg4+gEo/WxsI4/XdtekW78xf0ifaX1tgqT61+0vRvLdrlaM2sqiuVkeUPuGKfsTHD5ZzwqOdfAYs2pgJiH9UG0Zeazgtb2J1Nd7iVwDbLgkbQMon+yTE84xT9HJrXcMZscZKbvuTmXkUC9lyBhmfBuKHamj5XQqtgkcu1AQ4qexU1wouD2YZ0BVFauohqauH1oVST; 20:Nwl2+A53yP1FxKF8a6o0uZ9I4nBrkpyZ6XSiSQ/9b9iZoXv+LO66Q/RAzHgIg9beIgoAYAdS9gloW+NZ+Og/g3utWrj45chsrLeVIa95BCTgrHp5oWbLmU1evTWRRtBZH9YQGXZMmBo15auweRTANjwInuPgG4GbaSXWFECjJzc= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR11MB0684; X-MS-Office365-Filtering-Correlation-Id: 8a47eeba-97f7-406e-9acb-08d31789fffe 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)(3002001)(10201501046); SRVR:CY1PR11MB0684; BCL:0; PCL:0; RULEID:; SRVR:CY1PR11MB0684; X-Microsoft-Exchange-Diagnostics: 1; CY1PR11MB0684; 4:Ybj3uGikdpJMMTtRInqO9ApDpqZHovFnpipFQ90rP+MvrYcKQKilfKreabBjuLjtPZXu+z+vKSoPL0IrN7lMlqr4t2T51TBw4pDrhEHl+WfJl/9oqmJdQtMAaQ0FwSMosKGdp9o96cCMsL8giI+21CsHIbkZztvDFUqeyHCvDguVwACy6sq0akifXIxvK4EFn0XwnOatMJtd/xmSIQPE/LGiFpQ6Jy/AQmttMkIUw+glKoWeQaCK2sOLmByAo0/AiNrJMBKHiA58rkFb7b6cIEO56oK9S7p6VRuXqrLZNpJZSfUWkPbpUZ9SDuYUCb6WqQONAutwdO5hf9mEIe6SSn69stZ0A3s4ch5RrceCrvhV3nWLD0rC28KIHbkNJTGV X-Forefront-PRVS: 0814A2C7A3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(479174004)(24454002)(189002)(377454003)(199003)(92566002)(19580395003)(87976001)(87266999)(36756003)(110136002)(54356999)(3846002)(50986999)(2906002)(59896002)(101416001)(23746002)(19580405001)(5004730100002)(66066001)(65956001)(33656002)(65806001)(4326007)(47776003)(106356001)(5008740100001)(6116002)(586003)(189998001)(230700001)(77096005)(65816999)(83506001)(80316001)(93886004)(86362001)(64126003)(42186005)(50466002)(97736004)(40100003)(81156007)(105586002)(4001350100001)(76176999)(2950100001)(15975445007)(122386002)(1096002)(5001960100002)(85282002)(336755003)(18886065003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR11MB0684; 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; CY1PR11MB0684; 23:EWZWd9JP2AJwdL5cmRNbSAjGt6eo9u2B1h6Y8?= =?Windows-1252?Q?3RwzpAi1CSGMrsRuljpkkIwTz5u8aSr8VgBQToKWbyNzPtNGNKd9gzh/?= =?Windows-1252?Q?LRJrUe/eTHSa7jK5HuKF7poVY0NnumyOqCZG62f4Flp49BlOCNykMiVq?= =?Windows-1252?Q?oy/Kl2VnAa2ZLTE4bMMMf6JgT+IpP3k+kiaN52BxSD66kMbNGR0Ht6ow?= =?Windows-1252?Q?UE8YEDw5hch33qaqeyJh4Ywq2XR6eybWpayR057/v0x8fru8VB51kOb9?= =?Windows-1252?Q?WjU++b2DoC1ZnMJTa2QI+R3TDD+7sN+kq2C8m1fWQZeGOPrMJrW6zsgC?= =?Windows-1252?Q?wCMw+cs3fYQ6Bsq4BqJXxOFyFiAHb/zRUvZ3O/FJPtD/ngCl7imCAjUd?= =?Windows-1252?Q?X2RaPX+A1zZV16goR7VlQ9T5k3j9Fg8UIwbqpZP5Na62EgZjIH93b3uF?= =?Windows-1252?Q?fy9akJDxUquJ59sj4RXzgU10ydiFy5WoC7d2GPYYaEtUF8irJT0ZBbeA?= =?Windows-1252?Q?hOA25UIr7K1ihYGtq4eOruHF5qpDFRr5QRsiARJX01rLOGolmiyr9/Y1?= =?Windows-1252?Q?UOlzVIRraMBWd8U3E6OtJhJq610qmNDB15CckH5lja2CW132Amyh3Xbj?= =?Windows-1252?Q?pioJpsaQlrWRbM1DsW1O9CBGVqTt/zfwwPBtQz2nYmAf8x7axaJzxkrv?= =?Windows-1252?Q?nkApeKx8uVT0mHbzYeMSdZw0IjVL6IJ/4aXXacNM4r6hrMa/pmGBkqNu?= =?Windows-1252?Q?vzYyvrEf1Yo2rPyARUaRtICpzHq7yBzZCOswn+3VgvV0ycQJW63fDBDE?= =?Windows-1252?Q?FherIvZAPz0PqX8GnQCSLYnznsCw4oSG+eGQtLB18uOXVMEf1QmyXCZG?= =?Windows-1252?Q?ml6Bq13+wqtdhFkO1DhJgyLIV6u7ZIqYWZPymWE40lLRGk90/BNxPMFx?= =?Windows-1252?Q?Z5gvrmQNCWjYrCPoGyEwEXibdsmMu0P0Y565ljAZQusE30g6Xjwsn7rE?= =?Windows-1252?Q?/S7nr3L+y5mKOzKYnfRQFp8NL9i2RIQEzgag98/hHhthJtGygW9u7UHv?= =?Windows-1252?Q?kaSq+RW4vvo0ZQWMuHdyxE5D8Tplyrwx4dDgFI5mfGb07Z0FBOSsKXm8?= =?Windows-1252?Q?/y3xWXM5EUBt0iA4JgISyXJDaSFW1000zZO3Hrr2ov9JCW/i96NYOUgi?= =?Windows-1252?Q?Qq+ztxanZZFhN7aC+OPHSfPBUWSoCul0pv1+5UmemXTLFWxfo19psFmN?= =?Windows-1252?Q?K+d5jBNPxdizbwuaEeOkJz4X4bf9k0xfkb+iHVh8312V0ArqZAjNqVaO?= =?Windows-1252?Q?MFxXFUo3+G43NJvhJ1/979N/dUgHqZ0Zf0kCKz1WpW7WOJjAEEtftcfp?= =?Windows-1252?Q?d07wefoa/j0G5ANj1mr6nuXg4GOzdWa9LA+K3VS/YQLUoplHaolCnRfd?= =?Windows-1252?Q?lm1qqir3VLnEMsJDHVMky+z7HHF2zihKIVCBifY0r01BJTGxqjhfXMlB?= =?Windows-1252?Q?/03i0BiwaXZlocQQLuoHYcygvVUdMwLTxWSV1NXj14tSbmV/w=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR11MB0684; 5:aaTtzh4oMfIzAWKkKjeGHVuketZ9954RoVzPRW7XJxepdQB5ym6l39OZLcB45Yh3Q7Lz3vCsqsRkHcU53eJPfzZBcrE/lHs5qx0Ow9tXGw4qrXyVmR3aYzdanS6RdjJpEEaJfv2Xg+Uxp9I/cnOC9w==; 24:YXPUdeNYeakPCz6mAGvFBvoiyoLVCG7bDnnmj3N07V4XlAa7pjEcVarcwoH4kzFr/xRIGz0lmNzdb14Q3dMQksrABidCg7NihyQjYZfMQuA= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: bluetreble.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2016 17:43:05.8143 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR11MB0684 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 9:56 AM, Tom Lane wrote: > Jim Nasby writes: >> On 1/7/16 9:12 AM, Tom Lane wrote: >>> (I'm also wondering how convert_sourcefiles() works at all in a vpath >>> build, considering that I don't see it doing anything like this ...) > >> It's only looking at outputdir, which I suspect is never ambiguous. > > Eh, no, look again. What it's actually doing is reading $inputdir/input/ > and converting into $outputdir/sql/, and reading $inputdir/output/ and > converting into $outputdir/expected/. I guess that works, but again it's > kind of at variance with the normal expectation of VPATH behavior. What > you'd expect is that $builddir/input files would override $srcdir/input > files; but as is, $builddir/input and $builddir/output are never examined > at all. Yeah, I just discovered the whole input/ and output/ bit. That really complicates things, because ISTM it's very common to directly specify both sql/ and expected/ files directly, and you'd certainly THINK that those files are input, and not output. Which begs the question... how the hell do sql/ and expected/ ever work in a vpath build? AFAICT things are never copied from $inputdir/(sql|expected) to $outputdir... Maybe it's just me, but this whole convention seems like a giant POLA violation. If pg_regress was only used in Postgres source maybe that wouldn't matter since presumably there's always an example to copy from (and presumably tests use either input/ and output/ OR sql/ and expected/, but never both). But pg_regress is used by contrib and now extensions, so it's got a much wider audience than just -hackers. :/ 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. Also worth noting: the only reason I'm using pg_regress is it's the easiest way to get a test cluster. If not for that, I'd just use pg_prove since I'm already using pgTap. [1] find . \( -name input -o -name output \) -type d ./contrib/dblink/input ./contrib/dblink/output ./contrib/file_fdw/input ./contrib/file_fdw/output ./src/test/regress/input ./src/test/regress/output -- 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