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 1nfPCz-0004Bj-0N for pgsql-general@arkaria.postgresql.org; Fri, 15 Apr 2022 16:54:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nfPCx-00054r-Cl for pgsql-general@arkaria.postgresql.org; Fri, 15 Apr 2022 16:54:07 +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 1nfPCw-00054i-Vh for pgsql-general@lists.postgresql.org; Fri, 15 Apr 2022 16:54:07 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nfPCu-0002YR-Jl for pgsql-general@postgresql.org; Fri, 15 Apr 2022 16:54:06 +0000 Received: by mail-pg1-x530.google.com with SMTP id bg9so7707644pgb.9 for ; Fri, 15 Apr 2022 09:54:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:to:from :subject; bh=fmia6Fzo1kaD8Kx8Invc5bFzcrOzeZGEJbTX6Qkvaow=; b=S6yQ2QOmjVEnXSEeUltqhK6JdDHUrHlKybQO8nj62/NcIVdwLMIzzCM+wvCsyggOst ImtnvGF4G9fS2hbrTfxLN/mf8qkxMjMMr29IyZ2fsA/6dFpKy4hAHTc4nFTH+tB8WuVV C6KI6x5nITerR7EOX218TFyvuGI3Mv6tXM4/2/ZQPgZ3rQBjlIYx8qlu7EIKmM4GZa5/ kBXTvIy4ANwDdiPLoNldpf6gPKMjMRDvnyFOUQFgwKIDhtehdWjKdXGiyypBh3FRIlP3 JqG9jJcFZRHYt0K5UFcaDA2EXnxnBeLwwBNgydY0+j5xIw8dFpr6iCDc9afGOqJdbfke do0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:from:subject; bh=fmia6Fzo1kaD8Kx8Invc5bFzcrOzeZGEJbTX6Qkvaow=; b=FvMgDjJrYEy9s1ZjGw/IeG+eJdkgCE3F1bQ5V5FMZm0LBxpDV3VUdzGzZKqaeU1+7x RvcXvuIQy3X2s9yBEoVq9KShb4+xYAPD01M2AiHWl8t/1QS7ioNeij5G4v+9qRyOzBYD +Xssxz+t+qyiohOLQ5F7qlfshVyhnWjZCTGLiipBuS6HvRwrY7ZKkrqTSnjhcKjvc6IY OxJ1wp2nO1QEos59De0M98Fs3P8YQNlQqFwj7wRPjQ3bTExtFNPIts0C1+qRj6H61Jrr YL3CeyoDi7mC30uMK6sR72uwB2a2wilSlnkmE3jKHrtetOgOXmpWPdfxHc9vpFadJ664 xu7A== X-Gm-Message-State: AOAM5324tUtAvoYX17rYGqzRqKlac1fpwRI6V+mzk/XnfNRalThZ0r4a DTfdSctsog5Lj78Wl9teJnYzpb9U6fo= X-Google-Smtp-Source: ABdhPJzppwQCMn7Vj2wZeT0OBCZ9wjShYa/ilZbVfGeM8GfvYwuex0k13X7enjdWbJlH511aCkZ//A== X-Received: by 2002:a05:6a00:801:b0:505:ccc3:15bf with SMTP id m1-20020a056a00080100b00505ccc315bfmr20732604pfk.57.1650041641883; Fri, 15 Apr 2022 09:54:01 -0700 (PDT) Received: from [10.128.71.194] ([155.98.131.2]) by smtp.gmail.com with ESMTPSA id c18-20020a056a000ad200b004f0f9696578sm3738391pfl.141.2022.04.15.09.54.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Apr 2022 09:54:01 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------zp2Xoqgw0V61uqzJvgOfSk3H" Message-ID: <1c00b419-2507-f018-3579-2529ed8d6de5@gmail.com> Date: Fri, 15 Apr 2022 10:53:59 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-CA To: "pgsql-general@postgresql.org" From: Rob Sargent Subject: function defined (or not), more worries on version 10->14 upgrade List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------zp2Xoqgw0V61uqzJvgOfSk3H Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit The function in question is working but I'm having trouble getting at it's current definition and the possibility that there are more v10->v14 issues in this database.  The last ERROR: below seems to me "a system thing"(tm) barnard=# \df genome_threshold_mono                                                  List of functions  Schema |         Name          | Result data type |                  Argument data types                   | Type --------+-----------------------+------------------+--------------------------------------------------------+------  public | genome_threshold_mono | uuid             | pbs_name text, genome_name text                        | func  public | genome_threshold_mono | uuid             | pbs_name text, genome_name text, conf double precision | func (2 rows) barnard=# \df genome_threshold_mono(pbs_name text, genome_name text, conf double precision); ERROR:  invalid regular expression: parentheses () not balanced barnard=# set search_path = shoc,base,public, bulk; SET barnard=# begin; BEGIN barnard=# select genome_threshold_mono('asdf', 'qewq'); NOTICE:  group id is ERROR:  Could not find markerset for qewq CONTEXT:  PL/pgSQL function threshold_process(uuid,text,boolean) line 11 at RAISE SQL statement "select threshold_process(tid, genome_name, false)" PL/pgSQL function genome_threshold_mono(text,text,double precision) line 22 at SQL statement SQL statement "select genome_threshold_mono(pbs_name, genome_name, 1.96)" PL/pgSQL function genome_threshold_mono(text,text) line 5 at SQL statement barnard=# rollback; ROLLBACK barnard=# \df genome_threshold_mono(pbs_name text, genome_name text, conf double precision); ERROR:  invalid regular expression: parentheses () not balanced The supplied arguments to the function in question are obviously bogus, but the reaction is correct, including call to nested functions. --------------zp2Xoqgw0V61uqzJvgOfSk3H Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit The function in question is working but I'm having trouble getting at it's current definition and the possibility that there are more v10->v14 issues in this database.  The last ERROR: below seems to me "a system thing"(tm)


barnard=# \df genome_threshold_mono
                                                 List of functions
 Schema |         Name          | Result data type |                  Argument data types                   | Type
--------+-----------------------+------------------+--------------------------------------------------------+------
 public | genome_threshold_mono | uuid             | pbs_name text, genome_name text                        | func
 public | genome_threshold_mono | uuid             | pbs_name text, genome_name text, conf double precision | func
(2 rows)

barnard=# \df genome_threshold_mono(pbs_name text, genome_name text, conf double precision);
ERROR:  invalid regular expression: parentheses () not balanced

barnard=# set search_path = shoc,base,public, bulk;
SET
barnard=# begin;
BEGIN
barnard=# select genome_threshold_mono('asdf', 'qewq');
NOTICE:  group id is <NULL>
ERROR:  Could not find markerset for qewq
CONTEXT:  PL/pgSQL function threshold_process(uuid,text,boolean) line 11 at RAISE
SQL statement "select threshold_process(tid, genome_name, false)"
PL/pgSQL function genome_threshold_mono(text,text,double precision) line 22 at SQL statement
SQL statement "select genome_threshold_mono(pbs_name, genome_name, 1.96)"
PL/pgSQL function genome_threshold_mono(text,text) line 5 at SQL statement
barnard=# rollback;
ROLLBACK
barnard=# \df genome_threshold_mono(pbs_name text, genome_name text, conf double precision);
ERROR:  invalid regular expression: parentheses () not balanced

The supplied arguments to the function in question are obviously bogus, but the reaction is correct, including call to nested functions. 
--------------zp2Xoqgw0V61uqzJvgOfSk3H--