Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rN7DG-009OAu-3p for pgsql-sql@arkaria.postgresql.org; Tue, 09 Jan 2024 08:11:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rN7DE-00AqGl-4Y for pgsql-sql@arkaria.postgresql.org; Tue, 09 Jan 2024 08:11:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rN7DD-00AqGd-SK for pgsql-sql@lists.postgresql.org; Tue, 09 Jan 2024 08:11:51 +0000 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rN7DB-000cWO-NL for pgsql-sql@lists.postgresql.org; Tue, 09 Jan 2024 08:11:50 +0000 Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6dbffc3b1c2so811354a34.2 for ; Tue, 09 Jan 2024 00:11:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704787908; x=1705392708; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=DyZAfyGDfCpRy72SOEV1iMuj1Kx+FwAKja6801VYeDQ=; b=gc0B21ClvbyoOhOv/TMH3aN97fVtLc7pDgjju7lUOFGLhISP4qfsq7MqM9g0aBhH48 PepBy/DvIROPDSa7G9xLulu1+KvcbO6AjenKNW1Rf7cLNNiQW1g4gkAfK0Io0Z0Toip3 lxSYoLF2cYi2qg/LEShRCu8xDEnzprL3ODXuNYhqLDRft2zFdPdX0D0wnFZTnzdKCyKl 6Q9MYaP+YPIxGjigzihdnUorUCyjNqG/Aak8athdkFFamU5w9JgeKOt2cgv6ddsPYDDc YtyK4sWE+tT1ydyURHiQdA2lITC1ubQJyKBGIZpSo1qfr5Svg+3VCffnXYJVlgdhm0qz btMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704787908; x=1705392708; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=DyZAfyGDfCpRy72SOEV1iMuj1Kx+FwAKja6801VYeDQ=; b=GwA09Fd+zCRiGQBuas4MamppIJ/qXQ8IHTy70a9AXxmEP4/PqmuQuBu2IihIk0ojJd POe3lKYpt2khf+XaeNMFrAff+NvEX6bdg/vDN1/VmVVlGQQDaXohIkvBvEI+HPlw60C+ Raz9aCQ+rEY2GGzE9cV86FjBJIYrec8/HXghIxdmnxT8T8MmwJhDpmaeLjL8J5vRTNHz rPz7uzkaimlu0DyRj/S7lMRkGmsqG3p5AmCW7yLOAsqToWVaUEyOVvjUzmz3s7xjx2wT Vowhufx6+uzZJtr5Domm0oEVqNVVySjTFJBpq8Cyh4j1lXa/ODPPXQPRupVRX6RXSFpx nVEQ== X-Gm-Message-State: AOJu0YxMxyn7ir8N7SWG+W4CvPPhylJNEcfGSo43wmR9Zq1F2wKDH7NJ Eiv5rXFpTvCdRdgwfNsVhe40LRx+w2oT4qG1jqHDP3nQKtiV2RN4 X-Google-Smtp-Source: AGHT+IH9teQ9ooTX/1LXvx8NVwF9+OMrJ+wECDxbXc2hqxUzrqM9eRgYU5oU/+mfSgDuWewwkRoPR9u1oIv6ksGlSL8= X-Received: by 2002:a05:6870:8e0c:b0:203:cbaf:e54e with SMTP id lw12-20020a0568708e0c00b00203cbafe54emr2574613oab.66.1704787908426; Tue, 09 Jan 2024 00:11:48 -0800 (PST) MIME-Version: 1.0 From: intmail01 Date: Tue, 9 Jan 2024 11:15:17 +0300 Message-ID: Subject: How to use one function which can be accessed for all schemas To: pgsql-sql@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000b3015e060e7edd65" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000b3015e060e7edd65 Content-Type: text/plain; charset="UTF-8" Hi, I have several schemas in my database, I want to create just one function to use with all these schema. I create the function in a main schema then the trigger call the function and error occurs : "No function matches the given name and argument types. You might need to add explicit type casts." How to use just one function which can be work amongst all shemas in the db ? My objective is to reduce update of functions code just once not for many schemas. I dont want to duplicate my functions for each schema. Thanks --000000000000b3015e060e7edd65 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I have several schemas i= n my database, I want to create just one function to use with all these sch= ema.
I create the function in a main schema then the trigger call= the function and error occurs : "No function matches the given name a= nd argument types. You might need to add explicit type casts."

How to use just one function which can=C2=A0 be work amon= gst all shemas in the db ?
My objective is to reduce update o= f functions code just once not for many schemas. I dont want to duplicate m= y functions for each schema.

Thanks
<= /div> --000000000000b3015e060e7edd65--