Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V8JnG-0007Cx-6w for pgsql-bugs@arkaria.postgresql.org; Sun, 11 Aug 2013 00:46:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V8JnF-0000i9-Dt for pgsql-bugs@arkaria.postgresql.org; Sun, 11 Aug 2013 00:46:01 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V8JnE-0000i2-Eb for pgsql-bugs@postgresql.org; Sun, 11 Aug 2013 00:46:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V8JnC-0000Fc-10 for pgsql-bugs@postgresql.org; Sun, 11 Aug 2013 00:45:59 +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 r7B0juw5029411; Sat, 10 Aug 2013 20:45:57 -0400 From: Tom Lane To: Peter Geoghegan cc: pgsql-bugs@postgresql.org Subject: Re: pg_stat_statements produces multiple entries for a single query with track = 'top' In-reply-to: References: Comments: In-reply-to Peter Geoghegan message dated "Sat, 10 Aug 2013 17:34:43 -0700" Date: Sat, 10 Aug 2013 20:45:56 -0400 Message-ID: <29410.1376181956@sss.pgh.pa.us> X-Pg-Spam-Score: -0.0 (/) 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 Peter Geoghegan writes: > So with this single earthdistance query, there are multiple > invocations of the executor, and thus multiple associated > pg_stat_statements entries (one with 4 "calls"). Isn't this just the behavior we decided we wanted for SQL-language functions? At least, if we change pg_stat_statements so it doesn't break out SQL-language functions, I'm sure somebody's gonna complain. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs