Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chhHO-00038C-1d for pgsql-hackers@arkaria.postgresql.org; Sat, 25 Feb 2017 18:41:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1chhHN-0000Gi-Kw for pgsql-hackers@arkaria.postgresql.org; Sat, 25 Feb 2017 18:41:13 +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.84_2) (envelope-from ) id 1chhFo-0005Bs-LV for pgsql-hackers@postgresql.org; Sat, 25 Feb 2017 18:39:36 +0000 Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1chhFl-0004pA-Lp for pgsql-hackers@postgresql.org; Sat, 25 Feb 2017 18:39:36 +0000 Received: by mail-qk0-x229.google.com with SMTP id x71so48333720qkb.3 for ; Sat, 25 Feb 2017 10:39:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=7nzwmanBQFssBvZmFWpAsMEEKBRfnWvD8P+29L8WuDY=; b=gKiAeUd8Qdfkl+YHp5iev7spUzEXp6GWVhbTh3k36/nrPNoLgS1x5Upka54dakBJQz UOaohs2wcyTEybithDd5Xg+Dd5NxD2Dlanjr3C4+qUwyUCSWwIqKNff+kTLzsY/fRUI1 agQ904jX7trsQqGCmZLLVIDx7IFLPCWgXmB8YkSrlHeDFHGSxy69BDILzaeSkFfpfZxk I5bBbv4IBOZ3QukhnGSZB77+G8kXNkAAKlwwvjTKWK7XzpueyNBVA7j3Ilb4GdwlBc3W kEqZxGClziU6jGzTCBLMHGGmHGT1tnxb/xhShG9SiqCVIwBmPA7LQ5rb9WOmTm8Rmdi7 6+MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=7nzwmanBQFssBvZmFWpAsMEEKBRfnWvD8P+29L8WuDY=; b=HfTlteiUQDsWiCW/lwuMzLdY/Umwm6QtIcV0O3BAunn/Y4C6y72Q34NRI/FT93C9TJ GJdRTIFG0vSv6A4n6CUarxj836zr9FlsvLPAnDod6F40E07tgu9sYPROfm2ek4QYPjhF BEq3dwwg1FZrdA1+yeR99NAvRKwEr290GtI2FOyvcnrhWVg4JVU2mza+ADSC0r8xyNQ6 6S4siwoYVbDAWqO5IUI7kHqZMl2BS13SijbL8lamzsBqcHQA+2gnm69K8ji3oCJDAQzt Wj6KQ7Tr38M5L4kRpzCfzQ0NU4PM2nokS9SKeuElcedqV9t0DVMNdipMTMbv9wEWkl5g DOwg== X-Gm-Message-State: AMke39mQy17sAuJSh9XfHRK+Ilmd+IC0RkHvd3geVK52YzOA7obZ3iUR9mhxhOcjgbd3onCK8AprJzhu49Cejb/Vnp31NkMyAfEt2doijt+b40/Q7u8/bv0UBcZeii2Vqyz4uDRrPmkkf7jGF5aBonYnGc3p8y2UghX0q9T53J6uehIXakyukHbb1h4zqhLi4kRMkgXXny8g+ps= X-Received: by 10.55.175.196 with SMTP id y187mr9489156qke.126.1488047972015; Sat, 25 Feb 2017 10:39:32 -0800 (PST) Received: from [192.168.10.146] ([98.122.164.227]) by smtp.gmail.com with ESMTPSA id n10sm5312530qte.28.2017.02.25.10.39.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Feb 2017 10:39:31 -0800 (PST) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: btree_gin and btree_gist for enums To: Tom Lane References: <56EA8A71.8060107@dunslane.net> <56EACB8C.1040406@dunslane.net> <03f7d748-0f89-e8e1-094d-f04e1026b93d@dunslane.net> <27220.1478360811@sss.pgh.pa.us> <31412.1478366009@sss.pgh.pa.us> <60fb708c-8b3c-1337-934e-c1bfe2afc539@dunslane.net> <8258.1487886101@sss.pgh.pa.us> <4376a7bf-ab8c-e640-9021-94b148f9d733@2ndQuadrant.com> <6704.1487952174@sss.pgh.pa.us> <930cb563-6dc6-c4af-3be9-31f06c60361e@2ndQuadrant.com> <8a8c60b4-39c0-69a4-824c-e364f5fd97ea@2ndQuadrant.com> <12734.1488042261@sss.pgh.pa.us> <4e730f28-742b-45e9-d507-4d292fbd7834@2ndQuadrant.com> <22791.1488047671@sss.pgh.pa.us> Cc: PostgreSQL-development Message-ID: Date: Sat, 25 Feb 2017 13:39:31 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <22791.1488047671@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 02/25/2017 01:34 PM, Tom Lane wrote: > Andrew Dunstan writes: >> On 02/25/2017 12:04 PM, Tom Lane wrote: >>> I think it'd be better to leave DirectFunctionCallN alone and just invent >>> a small number of CallerFInfoFunctionCallN support functions (maybe N=1 >>> and N=2 would be enough, at least for now). >> See attached. > Yeah, I like this better, except that instead of > > + * The callee should not look at anything except the fn_mcxt and fn_extra. > + * Anything else is likely to be bogus. > > maybe > > + * It's recommended that the callee only use the fn_extra and fn_mcxt > + * fields, as other fields will typically describe the calling function > + * not the callee. Conversely, the calling function should not have > + * used fn_extra, unless its use is known compatible with the callee's. > > OK, Works for me. Thanks. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers