Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y9Sab-0005r3-Nd for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Jan 2015 05:58:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y9Saa-0001tp-Lb for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Jan 2015 05:58:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y9SaZ-0001tj-Q6 for pgsql-bugs@postgresql.org; Fri, 09 Jan 2015 05:58:28 +0000 Received: from mail-qc0-x22a.google.com ([2607:f8b0:400d:c01::22a]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Y9SaW-0007nv-3r for pgsql-bugs@postgresql.org; Fri, 09 Jan 2015 05:58:25 +0000 Received: by mail-qc0-f170.google.com with SMTP id x3so6843270qcv.1 for ; Thu, 08 Jan 2015 21:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=bzq0+Y4qVWXHsSu2FLm+PcXba/1jLebZ2Sv/Gj4miYM=; b=gW0nRdfDWkHQfR02D+PGfRC/1qMmOocORD87Shqu3qK3hycHG4mkVEudWPGuVyZfdL kNgD0Mpbqyi84QIu4KLm3tnlcgWw9Bd7AY1aQ3wzhsEBFvWH9aFQ9QXtYmUYF78zcZwz fenn5+byuDpJ2MZP6SH5rjsKK0ltNHGOuA9GM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=bzq0+Y4qVWXHsSu2FLm+PcXba/1jLebZ2Sv/Gj4miYM=; b=bv4BDmeiN3VEef4BplBXpb055iw8I9Ov7iQdNvuycxSuGJN2zHNHJ12uDcbOm2Vd99 7OvI+z72gGm0zs+YKfz+aGN8rDu6R71gaWr9B6a9zPdqRBgFnDOEVpsHOA2PeJlVo02E aBKAQa9l/YR1WByiHFO3jYcRxrhX9xMM9FOYR7eiMMblnfQBqMxLWRtRIGX9ei5Er0Ye EFXS51yNcDkBuexwk6qVeLtOZOQlHyDocPxNGmHGL8RvERV0AJuozi4T34/xsxqUY4JS zSKWSDiuVD8D799J+EgcYONDqM3/Fl3hU3hyiCF4jirwF/aPi1ZPV3sw/tjZxvCwS2dS ybig== X-Gm-Message-State: ALoCoQlVriE4ZSQHIwAaZ+TKx64z7rQesuG1UPVp9HnQgQ0dldyhiVf6NmS/p6QZBEz9EhWRohM+ X-Received: by 10.224.43.202 with SMTP id x10mr23158625qae.16.1420783102974; Thu, 08 Jan 2015 21:58:22 -0800 (PST) Received: from tornado.leadboat.com (c-50-131-89-155.hsd1.ca.comcast.net. [50.131.89.155]) by mx.google.com with ESMTPSA id i11sm6148644qar.25.2015.01.08.21.58.21 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 08 Jan 2015 21:58:22 -0800 (PST) Date: Fri, 9 Jan 2015 00:58:19 -0500 From: Noah Misch To: Tom Lane Cc: Heikki Linnakangas , support@maerix.com, pgsql-bugs@postgresql.org Subject: Re: Re: BUG #11617: issue with dump/restore involving view with hstore data type embedded in where condition Message-ID: <20150109055819.GB2489618@tornado.leadboat.com> References: <20141009200031.25464.53769@wrigleys.postgresql.org> <544ACDAB.7060904@vmware.com> <11046.1414190207@sss.pgh.pa.us> <22372.1414286907@sss.pgh.pa.us> <20150107074037.GA2375451@tornado.leadboat.com> <21569.1420643530@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21569.1420643530@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Wed, Jan 07, 2015 at 10:12:10AM -0500, Tom Lane wrote: > Noah Misch writes: > > Is there something precluding implementation of an all-numeric-types opfamily > > that contains the existing default btree opclass operators? That wouldn't > > solve every example like this, but it would help here among other places. > > That solves only the first example I came up with, not the general > problem. Correct. > >> Heikki Linnakangas writes: > >>> I don't think this can be solved without some additional syntax, for > >>> specifying the equality operator explicitly. I propose that we add an > >>> optional USING after the problematic expressions: > > > The similar situation with IN -> =ANY is tolerable, and I could be content > > with ruleutils deparsing that way every time. That's certainly the safe fix. > > That's completely not comparable, because =ANY is still valid/standard > SQL syntax. I don't see how you can justify the idea that introducing > new, nonstandard syntax for a fundamental SQL operator is better than > introducing a new operator selection rule. I weight various priorities as follows; higher is better: 8 - backward compatibility for applications 7 - dump/restore cycle working 5 - query behavior predictable by non-hackers 2 - beauty of ruleutils.c output 1 - limiting use of nonstandard SQL in ruleutils.c output Hence my conclusion above. Also, I have more than once written an application query that would have used IS DISTINCT but for the inability to reach a specific operator; the proposed syntax is an independently-useful feature. > Keep in mind also that IS DISTINCT FROM is just the tip of the iceberg. > There's also the shorthand CASE syntax, and probably some other cases > that I'm not recalling in my caffeine-deprived state. The list: IS [NOT] DISTINCT [NOT] IN JOIN USING, NATURAL JOIN CASE WHEN NULLIF -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs