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 1nBwjY-00038T-QJ for pgsql-general@arkaria.postgresql.org; Mon, 24 Jan 2022 10:38:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nBwjX-0002Qf-DS for pgsql-general@arkaria.postgresql.org; Mon, 24 Jan 2022 10:37:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBwjX-0002QW-1E for pgsql-general@lists.postgresql.org; Mon, 24 Jan 2022 10:37:59 +0000 Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nBwjU-0006pO-SR for pgsql-general@postgresql.org; Mon, 24 Jan 2022 10:37:58 +0000 Received: by mail-ot1-x333.google.com with SMTP id z25-20020a0568301db900b005946f536d85so21593654oti.9 for ; Mon, 24 Jan 2022 02:37:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=buoIfT/wmd5xSog3J8pF6gwBvH+p4Nkcw3VhVQumhZU=; b=FH8SK190JdLJUnbKzjyPwq61u/ggr5I15A3KMXZ5q+XxBU/Usob2O7+QbHIgZ0Ihox C4htXvX4IytGq0fW5lnC0+wx4TQjyPtFkCfnuDn5vbnr2uh3nrXCd9Of7gS1xXic9PES kHho9WOnXz8NLSzTawOeDTsNknIgwjzbOrKyd/vn1BwJUuf29wqoFJD+bBT0ddNEpJgj iz0nHovntMK4LRYMqRE4EM4uNKeDC96kUd8v7prynjwmBQ2EcFbbSqlBBJ1G3iCG/AIi lEK1fOm3y79jhT23IdiKBtAw3310Dqts6WSdiQBotIgt7xsC5rb/2HmzMuoOvELB+Huq CLiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=buoIfT/wmd5xSog3J8pF6gwBvH+p4Nkcw3VhVQumhZU=; b=rjwBDbXU3AR+bT5eNr1b2cE8vp+zqDv5TqXpSqZJXOj+hUrYj2iz2Yigitg2rJmS1p pALOuKTKf7qaldpMvNRmGTofL37mkwnTEBJrKGsxVo3uy5SDeoFkXzAwthpMyjrf2gb9 nNp3ncdbJJl4GIqQyNQG8NJxzfUzskwMAWmln4JDvGHKDgrGbXa3qnpLvq2dXSSE6etN Ejd570eXThoRn0VaU0zR6H2NSpib9+YLGMKFhJs+D7kwIPYW5ZwEPA9kBWXwNDhWL2Vt 45KO/oNvTsRJwUVLRGJ/B8z1Wy7OCNeQXuGFhmxK3R7zXqird3dMCWyRcpTdnrbI7Czq wH4Q== X-Gm-Message-State: AOAM530UJk2JTF56p+RvwdLt6VEnqAhmoelJxCaqWSFOFc8ONqpw8Flz JM1GgOvi9ZB1eTKCgcDMHrnYFekq4HrrbWxm+Uo= X-Google-Smtp-Source: ABdhPJwjPhW9PvAq7lqTZoKrF2xPGSASJZTHjWcMdSmtpZWRuAUsRZjPk/bh6HfC4TXBHIrRqCb4xkVKtN4LE4mxqCc= X-Received: by 2002:a05:6830:1313:: with SMTP id p19mr11378624otq.173.1643020676246; Mon, 24 Jan 2022 02:37:56 -0800 (PST) MIME-Version: 1.0 References: <856144.1642687523@sss.pgh.pa.us> <1585432.1642951326@sss.pgh.pa.us> In-Reply-To: From: Dominique Devienne Date: Mon, 24 Jan 2022 11:40:30 +0100 Message-ID: Subject: Re: Cannot find hstore operator To: Ganesh Korde Cc: Tom Lane , Paul van der Linden , pgsql-general Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Jan 24, 2022 at 11:19 AM Ganesh Korde wrote: > On Mon, 24 Jan 2022, 3:22 pm Dominique Devienne, wrote: >> Is there any way to achieve that, beside our current `SET search_path` workaround? > This might help. > Alter user SET search_path TO myschema,public; > No need to set search_path every time. Hi. Not really, no, I'm afraid. I'm in charge and control the app's schemas, not the LOGIN USERs using those schemas. I.e. my triggers shouldn't have to rely on the session's search_path at all, and nor how that search_path is set. Also, the schema(s) to access are dynamic, and some clients don't set a search_path at all. My triggers shouldn't stop working when there's no search_path (i.e. only pg_catalog and pg_temp are implicitly resolved).