⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 2.0 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 10 of about 17 for postgres (0.002 sec.)
PostgreSQL Extension 12552
The postgres extension allows DuckDB to directly read and write data from a running PostgreSQL database instance. The data can be queried directly from the underlying PostgreSQL database. Data can be loaded from PostgreSQL tables into DuckD ... tables, or vice versa. See the official announcement for implementation details and background. Installing and Loading The postgres extension will be transparently autoloaded on first use from the official extension repository. If you would like to insta ... ll and load it manually, run: INSTALL AND LOAD postgres; Connecting To make a PostgreSQL database accessible to DuckDB, use the ATTACH command with the postgres or postgres_scann ... er type. To connect to the public schema of the PostgreSQL instance running on localhost in read-write mode, run: ATTACH '' AS postgres_db (TYPE postgres); To connect to the Postg ...
https://man.mtool.work/duckdb/2.0/core_extensions/postgres/overview.html
PostgreSQL Extension and the Secret Manager 11431
User credentials and other PostgreSQL database connection details can be stored using the DuckDB Secrets Manager . The following syntax can be used to create a secret: CREATE SECRET ( TYPE postgres, HOST '127.0.0.1', PORT 5432, DATABASE postgres ... tgres, USER 'postgres', PASSWORD '' ); The information from the secret will be used when ATTACH is called. We can leave the PostgreSQL connectio ... n string empty to use all of the information stored in the secret. ATTACH '' AS postgres_db (TYPE postgres); We can use the PostgreSQL connection string to override individual options. For example, to connect to ... using the same credentials, we can override only the database name in the following manner. ATTACH 'dbname=my_other_db' AS postgres_db (TYPE postgres); By default, created secrets are temporary. Secrets can be persisted using the CREATE PERSISTENT SECRET ...
https://man.mtool.work/duckdb/2.0/core_extensions/postgres/secrets.html
PostgreSQL Extension Functions 11293
postgres_clear_cache postgres_configure_pool postgres_execute postgres_hstore_get postgres_hstore_to_json postgres_query read_postgres_binary postgres_clear_cache postgres_clear_cache() -> TABLE Clears cached schema entries (like table name ... s with column lists) for all attached PostgreSQL catalogs. Attached schema is going to be re-read on the next access. Parameters None. Returns A table with the following ... successful Currently the table result is always returned with zero rows, so the flag value is not available. Example CALL postgres_clear_cache() postgres_configure_pool FROM postgres_configure_pool([⟨optional named parameters⟩]) -> TABLE When a PostgreS ... e collected runtime statistics of a connection pool. Parameters catalog_name ( VARCHAR ): the name (alias) of the attached Postgres database to which pool the configuration change is applied and details are returned. When NULL (default) returns the curre ...
https://man.mtool.work/duckdb/2.0/core_extensions/postgres/functions.html
Amazon RDS with IAM Authentication 10914
Managed PostgreSQL databases on Amazon RDS and Aurora can authenticate with short-lived IAM tokens instead of a static password. DuckDB supports this through the postgres and aws extensions: the aws extension generates the token from an AWS ... credential chain, and the postgres extension uses it as the connection password, refreshing it automatically. Installation and Loading INSTALL postgres; INST ... ALL aws; LOAD postgres; LOAD aws; Creating the Secrets First, create a secret of type rds . It uses the AWS credential chain to mint the IAM toke ... n: CREATE SECRET aws_rds_secret ( TYPE rds, PROVIDER credential_chain, CHAIN 'env;sso', REGION '⟨eu-west-1⟩', RDS_USER '⟨postgres⟩', RDS_HOST '⟨instance⟩.⟨identifier⟩.⟨region⟩.rds.amazonaws.com', RDS_PORT '5432' ); Then create a secret of type postgres ...
https://man.mtool.work/duckdb/2.0/guides/database_integration/rds_iam.html
PostgreSQL Import 9293
To run a query directly on a running PostgreSQL database, the postgres extension is required. Installation and Loading The extension can be installed using the INSTALL SQL command. This only needs to be run once. INSTALL postgres; To load t ... he postgres extension for usage, use the LOAD SQL command: LOAD postgres; Usage After the postgres extension is installed, you can att ... ach a PostgreSQL database using the ATTACH command . This allows you to query all tables stored within the PostgreSQL database as if it w ... as a regular database. The first parameter of ATTACH is the PostgreSQL connection string , a list of connection arguments provided in {key}={value} format. Below is a list of valid arguments. ...
https://man.mtool.work/duckdb/2.0/guides/database_integration/postgres.html
PostgreSQL Extension Connection Pool 8466
PostgreSQL server spawns a backend process for every incoming client connection. This model leads to the two following points with the postgres extension that can cause performance problems: opening a new connection is relatively expensive ... d idle) after use and can be reused for subsequent queries. Parallel Scans Due to DuckDB's multithreaded query processing, postgres extension can open multiple connections even for queries that performs a scan for a single PostgreSQL table. The number of ... e necessary for local processing of other queries on DuckDB side) this can lead to attempts to open an excessive number of PostgreSQL connections. To prevent this, these parallel queries (for the same table scan) are additionally limited by the maximum n ... an, that proceeds with the worker threads that were able to acquire a connection from the pool. See the description of the postgres_configure_pool function for details. Connection Proxies Connection pool can be the most effective when DuckDB connects dir ...
https://man.mtool.work/duckdb/2.0/core_extensions/postgres/connection_pool.html
ATTACH and DETACH Statements 7776
DuckDB allows attaching to and detaching from database files. Examples Attach the database file.db with the alias inferred from the name ( file ): ATTACH 'file.db'; Attach the database file.db with an explicit alias ( file_db ): ATTACH 'fil ... ed. Only applicable for in-memory databases. VARCHAR false TYPE The type of the attached database, e.g., DUCKDB , SQLITE , POSTGRES , MYSQL . If omitted, the type is deduced from the path. See Database Type . VARCHAR DUCKDB DEFAULT_TABLE The table that i ... m accepts additional type-specific options, such as SECRET and SCHEMA . See the relevant extension page for the full list: PostgreSQL , MySQL , and Iceberg . Database Type The TYPE option specifies which storage engine backs the attached database. The ty ... storage uses DUCKDB (the default). Other types are provided by extensions, for example SQLITE (via the sqlite extension ), POSTGRES (via the postgres extension ), and MYSQL (via the mysql extension ). If the extension that provides the type is not alread ...
https://man.mtool.work/duckdb/2.0/sql/statements/attach.html
CONNECT and DISCONNECT Statements 7741
New Support for the CONNECT and DISCONNECT statements was introduced in DuckDB 2.0. The CONNECT statement routes the current session to a remote database, so that subsequent queries execute on that remote and their results stream back. DISC ... connection string. For databases other than DuckDB, the connection string must start with the type of the database, e.g., postgres: , followed by a connection string for that database (here, a libpq connection string ): CONNECT 'postgres:dbname=mydb hos ... t=localhost'; SELECT count(*) FROM orders; -- runs on the PostgreSQL server DISCONNECT; Syntax CONNECT { ⟨attached_database⟩ | '⟨connection_string⟩' }; DISCONNECT; CONNECT accepts either th ... es CONNECT works with databases that support remote execution, including: DuckDB servers reached over the Quack protocol . PostgreSQL and MySQL servers. For these, the remote pushdown optimizer ships SQL directly to the server instead of pulling tables o ...
https://man.mtool.work/duckdb/2.0/sql/statements/connect.html
Core Extensions 7707
List of Core Extensions Name Description Maintainer Support tier Aliases autocomplete Autocompletion for CLI client DuckDB team avro Avro files reading DuckDB team aws AWS S3 functionality DuckDB team azure Filesystem abstraction for Azure ... and functions DuckDB team json JSON operations DuckDB team lance Lance tables read/write Third party legacy_parser Legacy PostgreSQL-derived SQL parser DuckDB team motherduck MotherDuck connectivity Third party md mysql MySQL database read/write operati ... ons DuckDB team mysql_scanner odbc ODBC connectivity DuckDB team odbc_scanner parquet Parquet files read/write DuckDB team postgres PostgreSQL database read/write operations DuckDB team postgres_scanner quack DuckDB-Quack protocol for remote access DuckD ...
https://man.mtool.work/duckdb/2.0/core_extensions/overview.html
AWS Extension 7604
The aws extension adds functionality, e.g., authentication, on top of the httpfs extension's S3 capabilities , using the AWS SDK. Installing and Loading The aws extension will be transparently autoloaded on first use from the official exten ... RDS_HOST '⟨instance⟩.⟨identifier⟩.⟨region⟩.rds.amazonaws.com', RDS_PORT '5432' ); The rds secret type is registered by the postgres extension , not by aws , so the postgres extension must be installed and loaded before the statement above will run. For t ... ret to a connection via AWS_RDS_SECRET , attaching, and querying — see the Amazon RDS with IAM authentication guide or the Postgres secrets documentation . Legacy Features Deprecated The load_aws_credentials function is deprecated and is removed in later ...
https://man.mtool.work/duckdb/2.0/core_extensions/aws.html
PREV 1 2 NEXT
DuckDB 2.0 Documentation / man.mtool.work