Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZvP2-0004yH-6G for pgsql-general@arkaria.postgresql.org; Sat, 16 May 2020 11:54:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZvOz-0001VS-H6 for pgsql-general@arkaria.postgresql.org; Sat, 16 May 2020 11:54:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZvOz-0001VL-73 for pgsql-general@lists.postgresql.org; Sat, 16 May 2020 11:54:49 +0000 Received: from mail-io1-xd41.google.com ([2607:f8b0:4864:20::d41]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jZvOw-0000Dl-Jr for pgsql-general@lists.postgresql.org; Sat, 16 May 2020 11:54:48 +0000 Received: by mail-io1-xd41.google.com with SMTP id k6so5533742iob.3 for ; Sat, 16 May 2020 04:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=NRMP0aq6WSvJ2vMh2EmuXNnzkAMiRzu4dWD6Ht1T6GU=; b=M5iKAtk6QzvFm641zkTy8xFiX305K1eRJTwQRRZL1n/7mmA22negjXU21qtK+wRX06 R2jsytcLUStySDtZaSwT9w86TuKbiC4s2HYTVoocfuNC4jBe5u8ARM99fObDq2G5dQK/ idYjyafbwU3wcWmqKeFu9Ibhhh8gqWE8q5M0HGKWjJOEZuVkzlvc2blpiPTvA1Ha6+q/ ryiVQfe70nsP5rXc0Go0XEqpNBnpzJZ72GZ6PCH5jgAf4SQ/90YcRfE+exgo030PEWGu o5xoKeb7GRsDyV7Uo/P/88GbEsGJi+K8d/jkuVspPnhUk2LYB3VBvW9/o1yAhc5nUNzd EMzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=NRMP0aq6WSvJ2vMh2EmuXNnzkAMiRzu4dWD6Ht1T6GU=; b=kFX+uHSKXVTdg10i1dTWcwCoidrGOyv2Bk8MpXdL3OPgXpE9ZQs9mk95fGzaX30S3M TtnhE+GpEUHe0KLpyOzokF9XwHevqvrNcdDhlgqhfY8/mlnFDtdLzZdtcAdamAaxgrpR lW8K5SjSwHohYvUfeQn2fVUnBM5PiMwUAf+O6KIMxCIogbksmh7EgWwNwCuVJ+BgT67P nWrA2NG+jYo8i5Mwjj4v4GBMjImloRyPpy6mc2LihE97+DLkgOLfa+6OvPCdWUaCb5Y4 Q0y2VfJA8506OZsIBB7pdc6147wa1YfW7TluyPnUle4peRbAL+5+NDcT4ug0OU2OqVS5 hWeQ== X-Gm-Message-State: AOAM531LHedF48GT8vcxs5+GpiZuPcxskVqctA+KYdzx+3dukfdrJkZH nw3jXt9gYOP5cXj69VJApZc= X-Google-Smtp-Source: ABdhPJxogdNTrX5XzHFXJlwByQ8GonV0mtgJxfFYyrSgUyAr244FMMfsUuJoldLzQEU/2iEtHEmDCw== X-Received: by 2002:a6b:6b04:: with SMTP id g4mr6806657ioc.75.1589630084246; Sat, 16 May 2020 04:54:44 -0700 (PDT) Received: from [192.168.1.144] (c-73-63-59-118.hsd1.ut.comcast.net. [73.63.59.118]) by smtp.gmail.com with ESMTPSA id f9sm1698715iow.47.2020.05.16.04.54.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 May 2020 04:54:43 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable From: Rob Sargent Mime-Version: 1.0 (1.0) Subject: Re: schema agnostic functions in language sql Date: Sat, 16 May 2020 05:54:40 -0600 Message-Id: <81A0F056-6703-4FD4-96BE-D13485CA1995@gmail.com> References: <6bc65c43-eca0-97f4-f343-37af78e1db25@aklaver.com> Cc: Tom Lane , "David G. Johnston" , "pgsql-generallists.postgresql.org" In-Reply-To: <6bc65c43-eca0-97f4-f343-37af78e1db25@aklaver.com> To: Adrian Klaver X-Mailer: iPhone Mail (17E262) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On >>> regards, tom lane >> Did my message with a sql and plgpsql versions not come through? >> I cannot create a plain sql function unless the search_path covers any ta= ble mentioned. Not the case when using plpgsql - no path needed. >=20 > But does the plpgsql segment_calls() run? >=20 > On other words does: >=20 > select * from segment_calls(segid uuid); >=20 > work? >=20 >> I'm ok(ish) with that, unless I've missed some detail. >> rjs >=20 Yes the plpgsql form works but of course requires a sufficient search_path >=20 > --=20 > Adrian Klaver > adrian.klaver@aklaver.com