Skip to content

Postgres_scan should be able to read a persistent secret #331

Open
@jjcfrancisco

Description

@jjcfrancisco

Similar to ATTACH, you should be able to use a persistent secret. My current and only option at the moment is to attach the whole database even though I am only interested in 1 table.

CREATE PERSISTENT SECRET my_persistent_secret (
    TYPE postgres,
    HOST 'localhost,
    PORT 5432,
    DATABASE my_db,
    USER 'my_user',
    PASSWORD 'my_password'
);
SELECT * FROM postgres_scan('', 'public', 'my_table');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions