Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g83f6-00070X-6U for psycopg@arkaria.postgresql.org; Thu, 04 Oct 2018 13:27:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g83f3-00057B-6X for psycopg@arkaria.postgresql.org; Thu, 04 Oct 2018 13:27:25 +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.89) (envelope-from ) id 1g83f3-000574-1R for psycopg@lists.postgresql.org; Thu, 04 Oct 2018 13:27:25 +0000 Received: from mail.dndg.it ([178.32.136.2]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g83f0-0006cN-FZ for psycopg@lists.postgresql.org; Thu, 04 Oct 2018 13:27:24 +0000 Received: from [10.94.33.108] (93-50-194-114.ip153.fastwebnet.it [93.50.194.114]) by mail.dndg.it (Postfix) with ESMTPSA id B874DA02E0 for ; Thu, 4 Oct 2018 13:32:43 +0000 (UTC) Subject: Re: Plans for 2.8 To: psycopg@lists.postgresql.org References: From: Federico Di Gregorio Organization: DNDG srl Message-ID: <3e4f0570-863a-6dfd-aaa9-d0b406af9d76@dndg.it> Date: Thu, 4 Oct 2018 15:27:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SURBL_BLOCKED, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/04/2018 02:38 PM, Daniele Varrazzo wrote: > A tiny improvement to SQL generation is already ready^W merged in > #732: it will be possible to use `Identifier("schema", "name")` which > would be rendered in dotted notation in the query. Currently > `Identifier()` takes a single param so this extension is backward > compatible and there is no need to introduce a new `Composable` type > to represent dotted sequences of identifiers. I understand that from a compatibility point of view everything works with the "schema", "name" order of arguments (you just switch on the number of arguments) but usually such approach causes infinite headaches when you remove or add the namespace from the call. `Identifier(name, schema=None)` is better, IMHO because makes explicit that the mandatory and first argument is always the identifier itself, while the schema is optional. federico -- Federico Di Gregorio federico.digregorio@dndg.it DNDG srl http://dndg.it One key. One input. One enter. All right. -- An american consultant (then the system crashed and took down the *entire* network)