Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bN5uG-0008E1-AT for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Jul 2016 22:11:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bN5uF-0003RB-Tm for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Jul 2016 22:11:55 +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_2) (envelope-from ) id 1bN5st-0001rl-JN for pgsql-hackers@postgresql.org; Tue, 12 Jul 2016 22:10:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bN5sr-0003LO-5z for pgsql-hackers@postgresql.org; Tue, 12 Jul 2016 22:10:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u6CMARYC011634; Tue, 12 Jul 2016 18:10:27 -0400 From: Tom Lane To: Merlin Moncure cc: PostgreSQL-development Subject: Re: IMPORT FOREIGN SCHEMA can't be run in in pl/pgsql due to INTO In-reply-to: References: <511.1468267767@sss.pgh.pa.us> Comments: In-reply-to Merlin Moncure message dated "Tue, 12 Jul 2016 08:25:55 -0500" Date: Tue, 12 Jul 2016 18:10:27 -0400 Message-ID: <11633.1468361427@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) 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 Merlin Moncure writes: > On Mon, Jul 11, 2016 at 3:09 PM, Tom Lane wrote: >> While we can certainly hack it by something along the lines of not >> recognizing INTO when the first token was IMPORT, the whole thing >> seems awfully messy and fragile. And it will certainly break again >> the next time somebody decides that INTO is le mot juste in some new >> SQL command. I wish we could think of a safer, more future-proof >> solution. I have no idea what that would be, though, short of >> deprecating INTO altogether. > This is a natural consequence of having two > almost-but-not-quite-the-same grammars handing the same shared > language. There are a similar set of annoyances compiling C with a > C++ compiler as we all know. In a perfect world, SQL procedural > extensions would be a proper superset and we'd have *one* grammar > handling everything. Among other niceties this would make moving > forward with stored procedures a much simpler discussion. Well, C'est > la vie :-D. Yeah, I was just belly-aching ;-). Not much choice in the short term. Fix pushed. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers