Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aTEkv-0006ST-G7 for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Feb 2016 20:19:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aTEku-0004Fi-NJ for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Feb 2016 20:19:24 +0000 Received: from makus.postgresql.org ([174.143.35.229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aTEjb-0002mH-9E for pgsql-hackers@postgresql.org; Tue, 09 Feb 2016 20:18:03 +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) (envelope-from ) id 1aTEjY-0002qC-Vw for pgsql-hackers@postgresql.org; Tue, 09 Feb 2016 20:18:02 +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 u19KHxtY019850; Tue, 9 Feb 2016 15:17:59 -0500 From: Tom Lane To: Josh Kupershmidt cc: =?UTF-8?Q?Filip_Rembia=C5=82kowski?= , Merlin Moncure , Pgsql Hackers Subject: Re: proposal: make NOTIFY list de-duplication optional In-reply-to: References: <7647.1454723392@sss.pgh.pa.us> <56B7224C.4090807@2ndquadrant.fr> <56B764BA.9070800@2ndquadrant.fr> Comments: In-reply-to Josh Kupershmidt message dated "Tue, 09 Feb 2016 15:09:56 -0500" Date: Tue, 09 Feb 2016 15:17:59 -0500 Message-ID: <19849.1455049079@sss.pgh.pa.us> X-Pg-Spam-Score: -2.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 Josh Kupershmidt writes: > On Tue, Feb 9, 2016 at 2:16 PM, Filip RembiaƂkowski > wrote: >> But then it becomes disputable if SQL syntax change makes sense. >> >> ---we had this, >> NOTIFY channel [ , payload ] >> ---and in this patch we have this >> NOTIFY [ ALL | DISTINCT ] channel [ , payload ] >> --- but maybe we should have this? >> NOTIFY channel [ , payload [ , mode ] ] > What about adopting the options-inside-parentheses format, the way > EXPLAIN does nowadays, something like: > NOTIFY (DEDUPLICATE FALSE, MODE IMMEDIATE) mychannel; FWIW, I think it would be a good thing if the NOTIFY statement syntax were not remarkably different from the syntax used in the pg_notify() function call. To do otherwise would certainly be confusing. So on the whole I'd go with the "NOTIFY channel [ , payload [ , mode ] ]" option. 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