Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aHBu7-0005bZ-Tr for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Jan 2016 14:51:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aHBu7-0007ST-B7 for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Jan 2016 14:51:07 +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 1aHBu6-0007SN-RO for pgsql-hackers@postgresql.org; Thu, 07 Jan 2016 14:51:06 +0000 Received: from mail-bn1bon0075.outbound.protection.outlook.com ([157.56.111.75] 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 1aHBu3-0003qS-4a for pgsql-hackers@postgresql.org; Thu, 07 Jan 2016 14:51:05 +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=h3ncIyDq8ZjyE9b+0/Hq1WdN3xd6OQojY9CvE9vV4Pk=; b=LGpHP+3+4SVT2Z30LxaILN7hjHr4orhOBbBbIcy7leUrBGGb+6XgkbNHxe17GjswP3wrTc3Vw0u/QDh4TcHD3iqB7Mn3OXE4oQfef8tjm65vWZtHyg6wRNwivmaW/XYxgQ2B62tNyUIBzkxGKOgNXIcYioEIiPcSWaaRdXZiTg0= 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 14:50:59 +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> CC: Robert Haas , Pg Hackers From: Jim Nasby Message-ID: <568E7B4A.4080003@BlueTreble.com> Date: Thu, 7 Jan 2016 08:50:50 -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: <12108.1452178021@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: SN1PR17CA0022.namprd17.prod.outlook.com (25.169.33.160) To CY1PR11MB0684.namprd11.prod.outlook.com (25.163.236.22) X-Microsoft-Exchange-Diagnostics: 1; CY1PR11MB0684; 2:QBrrSg/AmYCAlQ785HiPtQ2cMkFQLD50weBbVlVIA7xncSa4kuBHKePvbmZy5PIB5QB3aZT8fpzxVpMKU95XN50mFFXycBTczqv26RT1GfDU68zvfv5x8jV7ufblS86uXjPLWoY16iQFUA5Wak4gPQ==; 3:4TyK7Gqp2JkYViKi4CilWXrIGpaza++zAopT2TV8tlzMGrm/+yyz65CezoUOv9x5x1KES9yrzkILC8O9dCgreWdC7OzoPV/kT9claf+yVNOJ3RE7SSfoDRLPKISF9vqD; 25:eh0WM72kgtfWGl0myOWYf5rfQrJHICvJcN+4kamesLS/tLosN2rLqokoRTuOWfcpZryuKK0ybYGuhoUBTRbxDZxIGij/n8dHGrUbg5VLiwPadwXJS57MS+i8NB1lNSOQrLk8Q+GwTS4Z12UCjxI3VfitdYCi28zWHjU9KW0dwX1ijZqhNFjqtX7xMd3TDwhvCoxhCib6LBzArLxjfUBhuRy8dzQxv3Jo9/rsOTuUhQMrmqTkwfLa0z00gqNjBo4c; 20:Vb8cmgmNvYR8X823CzFIS4nef9Ujhub0QOJuewela9rWBJ7iBPsij3OHgTcO9LXDHcvggfgDBGMVQU5qFkxgamoZ1UQ405tgQp5h4fEY+3Z8sVtrzpm6QO4vN4yDI41/TFqlll0rqqn7tDGPgjAaCXpxQwVJv8pHnm83/g4+epk= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR11MB0684; X-MS-Office365-Filtering-Correlation-Id: 13ccb95e-c862-4072-1cef-08d31771f51f 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:eBGB69Jw4uaapgNbqQddNmILfQiZIQHIJes3IDxgCaXHkyUTsTrmzkt/pP9P7f5eimwGW7k+M5NqUpHywnR9z535eDImH+mWiy3OsxgujQ0Xg+eKxz7lVsJWGbgmDWGPkUrPA/Q1gdAI5WMHRfTNZMal+B5j176JG7rqg9S8m0LstZUVWDuVwDVMGuKcgwjKlnGo2svEJVvTojs9D1mJ9wHhwMp1b9/7Lyt8kyXJZeD6p1iweOToio+ltQ7biWtA7qAaNHjQriqCt9hfSDsf9N1FOSEiA3n37EPIkyk1RlAQxo2yv+RP8KiSVpHn/nvWgNHols7atnU2hGBTd/xhYITxJcwtR5MEBWgRCeTQHShrWxT7xu9xwhz7DNo26Cqw X-Forefront-PRVS: 0814A2C7A3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(189002)(24454002)(377454003)(199003)(479174004)(65816999)(77096005)(64126003)(80316001)(86362001)(83506001)(93886004)(5008740100001)(6116002)(5001960100002)(106356001)(230700001)(586003)(189998001)(2950100001)(4001350100001)(122386002)(76176999)(1096002)(15975445007)(50466002)(42186005)(81156007)(40100003)(105586002)(97736004)(36756003)(3846002)(110136002)(54356999)(87976001)(19580395003)(92566002)(33656002)(65806001)(65956001)(5004730100002)(66066001)(47776003)(4326007)(59896002)(2906002)(50986999)(87266999)(19580405001)(101416001)(23746002)(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:d50w5mSXYADNUjwlk90FoCA3WLzi6ytJg1O2G?= =?Windows-1252?Q?45lUPTCxh0gV8em7iNrOBqassZVqCXneAsYPkiJ4s2d64YoqJFReBGtw?= =?Windows-1252?Q?DxPEfuvlqMCkPE2TZcP4pg0YXZJAb8+Dn9NseNyR1xXFaQbbTcxUWsnO?= =?Windows-1252?Q?8iR2SzcaZ2JE27tRqVtm3O0FDo9ZN4jDC/bBR5sFRpceyrdrUDi3QjR0?= =?Windows-1252?Q?gUaLTLx4WThJnzIn/k0LwCdPMDSn83mUTwO2Z/Gj+fFCAr2mrFCadlH8?= =?Windows-1252?Q?OcXNhIW/qgMFgzLd6j7zv4793pPWkOIFi7OlHChdDLpvJzvgExYhpYPS?= =?Windows-1252?Q?KCdQz+Mev1t7ZB4ZuOX2gLjN5ZWALVoPNEk/LL65R1wAQJy79cxvnqrq?= =?Windows-1252?Q?jbTj9cCj2kGVhRdHw3JeFy8Svmzcf28J7IoqVeE/2JCJyBPR2IXKAEKE?= =?Windows-1252?Q?DDd59JhKwkGVOLfUpcWNNUCEurjSS5RYJdN81ZZKVF+aJPwtqCNjmyFU?= =?Windows-1252?Q?hxqd7Kt1RwcfMqLQtBB0nKQDnCUcLkCCLDOllOA/93qT0AgPXwG8/yYw?= =?Windows-1252?Q?bFyOA9DQvsmMofqc71tafXBhA0XZhUeIjgAIzEsKo6quDtMcHasZIRcD?= =?Windows-1252?Q?s/NsEgh89X83ARN9MvpxJToO5beUDk/Lr3W9bp6vzKBdI4NopSH2ISnP?= =?Windows-1252?Q?jlGa5UTJ52cKi+gdArP22f+IGDkpBMs4C+SYkOHlbOPMWgKD/34PBXqy?= =?Windows-1252?Q?cpZuNnDc3jl7VX8DZxgFnk4xXkKLJCIpSLKypTx6msgvVNx4rMxWvnvZ?= =?Windows-1252?Q?/1vghrgdrrH7GrV5DTx6igKYTBBbl5aZnb+nz8xGC/1BsTFwtJFHX5Ey?= =?Windows-1252?Q?tgp1gslsW+StwPv0LOTfwZuT4s4T5He6q+mi5oQgK7qmt+yP5A6Fi0CK?= =?Windows-1252?Q?ig5Ru6ffxXOISpF0PTIx9Mk5o2A/DFOUxIxrC9XT6v4eG2zkaX+FikSd?= =?Windows-1252?Q?prcjXDO7g0UBdc6J7/Ga+Epbho0GM9fN22R9GpSfHKh5X3DxsfQtdrnq?= =?Windows-1252?Q?M7jdSJrAf/8R7Sc+NFc3PD6bGjnP5kHDDtOYfR0X0wSGIk8uVfbQjT69?= =?Windows-1252?Q?k0fAf6ftKR6a0YLn9WjoUz5gaUGQjty63ow+4j1KJTnfejh7erllVOzv?= =?Windows-1252?Q?lHudD8mp/x8YCMnAhJYeEwvgG3++tr7igwy7gYyUpNWAKpJq0xuKr754?= =?Windows-1252?Q?FTpzxE7uyOt7HorEbjoHwlGAs7e/pS9jHq9hPvzBXoLrgy9poTvA5y6t?= =?Windows-1252?Q?z63dgxoeuufpNZ3KzzoJc06N34QwfSjJJm21kCAskgKaknErnn9cEatp?= =?Windows-1252?Q?KsKdtKg4KTcQbyM+0A2UK7c2B2OWl3N1ZhF+/bKAzuST4cv321Byl0sV?= =?Windows-1252?Q?3/7uCvBF8/jSp9o/Z+Xm9cV0WN+rejTH041qIu1/4dIl5fTpHTOoNdKo?= =?Windows-1252?Q?PesBNCk03jk7S/Mbdkyk946m4oqx2iVgLQmwBoZD5CWLEh6ww=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR11MB0684; 5:d1008kFlyX8zolrizuaB1ouejcHPmnlJXm1f6f1KjOYJ11Vzy5kZYNvPcbJr108Uk+dh0K1nDWL94QuokfX1GzxJyyzT7kX/U626t3UoGjPeLpap2qcbhZzrg11Ahz4yLp1AaR52l+1vtFYxnrJXKw==; 24:EgkDLxnQKVmjNtBnEHYda4MlT/jCMEjhcXTMn4ku0XIdV9YE9sKukcashahuORqWh63+Y2ME+lN5EdSCwbOgdf1Lo/Mc5hSN+rZkmPGpllw= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: bluetreble.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2016 14:50:59.6196 (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 8:47 AM, Tom Lane wrote: > Jim Nasby writes: >> However, if I do this: >> mv test/sql/acl_type.sql test/sql/acl.sql >> mv test/expected/acl_type.out test/expected/acl.out > >> And change acl_type to acl in that pg_regress command: >> /Users/decibel/pgsql/HEAD/i/lib/pgxs/src/makefiles/../../src/test/regress/pg_regress >> --bindir='/Users/decibel/pgsql/HEAD/i/bin' --inputdir=test >> --load-language=plpgsql --dbname=contrib_regression acl build compat rights > >> Instead of executing test/sql/acl.sql, it executes ./sql/acl.sql. > > That's pretty hard to believe. There's nothing in pg_regress that looks > in places other than the given --inputdir. Actually, I think it does... from pg_regress_main.c: /* * Look for files in the output dir first, consistent with a vpath search. * This is mainly to create more reasonable error messages if the file is * not found. It also allows local test overrides when running pg_regress * outside of the source tree. */ snprintf(infile, sizeof(infile), "%s/sql/%s.sql", outputdir, testname); if (!file_exists(infile)) snprintf(infile, sizeof(infile), "%s/sql/%s.sql", inputdir, testname); If I add --outputdir=test, then everything works fine. Obviously I can just deal with this in my Makefile, but is this really the behavior we want? It certainly seems to violate POLA... > I wonder whether you have a test/input/acl.sql and/or test/output/acl.out > that's confusing matters. Nope... decibel@decina:[08:35]~/git/pg_acl (master *%=)$ll test total 16 drwxr-x--- 6 decibel staff 204 Jan 2 17:31 ./ drwxr-x--- 17 decibel staff 578 Jan 7 08:35 ../ -rw-r----- 1 decibel staff 65 Jan 2 17:31 deps.sql drwxr-x--- 6 decibel staff 204 Jan 7 08:32 expected/ lrwxr-x--- 1 decibel staff 25 Dec 26 13:43 pgxntool@ -> ../pgxntool/test/pgxntool drwxr-x--- 6 decibel staff 204 Jan 7 08:32 sql/ decibel@decina:[08:48]~/git/pg_acl (master *%=)$ -- 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