Snowflake Postgresへの接続¶
Once you create a Snowflake Postgres instance, you can connect to it with any PostgreSQL client, such as psql or DBeaver. To
establish a connection, you configure your client with:
インスタンスの ホスト名 。これは仮想マシンホストの URL です。
A username. When you create an instance, the snowflake_admin user is created by default and designed for administrative access.
接続先の Postgresデータベース 。このパラメーターは、Postgres接続を作成するために必要です。デフォルトのデータベースの名前は「postgres」です。
ユーザーの パスワード 。
Here is an example of these connections details used with the psql command line client:
$ psql -h abcefg.snowflake.app -U snowflake_admin -d postgres
(psql will prompt for a password.)
ポートを指定する必要がある場合は、5432を使用します。
$ psql -h abcefg.snowflake.app -U snowflake_admin -p 5432 -d postgres
重要
Snowflake Postgresインスタンスに接続するには SSL が必要です
接続文字列について¶
Snowsightを介してPostgresインスタンスを作成する場合、Snowflake Postgresは libpq URI 形式 内の接続文字列を提供し、 psql 経由で直接接続、またはアプリケーション構成への入力に使用します。
注釈
特定のロールのアクセスを明示的にリセットしない限り、クラスターの接続文字列はクラスター管理操作全体で同じままです。
データベース URL としての接続文字列には次のパラメーターが含まれます。
プロトコル:
postgres://ユーザー名:詳細については、 Snowflake Postgresのロール をご参照ください。
password
hostname
ポート:5432
database_name:デフォルトはpostgres
これらは、この形式の URI 接続文字列の構築に使用されます。
postgresql://<username>:<password>@hostname:<port>/<database_name>
クライアント環境が SSL 接続を強制するように構成されていない場合、 ?sslmode=require to the URI を追加できます。
postgresql://<username>:<password>@hostname:<port>/<database_name>?sslmode=require