データベースでインラインクエリを実行しようとしています-citext
拡張機能がインストールされています(を使用CREATE EXTENSION
)-それでも、実行されたクエリは関数を呼び出すときにこのエラーをスローし続けます:
type "citext" does not exist
DO
LANGUAGE plpgsql
$$
DECLARE
_id INT;
BEGIN
SELECT * FROM "dbo"."MyFunction"(_id, 'some value'::citext);
END;
$$;
::citext
キャストを省略すると、次のようになります。
function dbo.MyFunction(integer, unknown) does not exist. You might need to add explicit type casts.
拡張機能が追加され、スキーマのcitext
一部となり、他のクエリと連携します。これはランダムに発生し続けます - 何が原因ですか?
編集: インストールされている拡張機能:
extname | nspname
----------+-----------
plpgsql | pg_catalog
citext | public
uuid-ossp | public
検索パス:
show search_path;
search_path
-----------
dbo