Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Can I directly call Greenplum functions using Postgre extensions

Open
#303 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, postgresql
Domain
databases

Research direction

Reproduce the example using CREATE SECRET, ATTACH, and postgres_execute, then inspect how postgres_execute handles the qualified function call and the reported cross-database reference error. Determine whether Greenplum function calls through the PostgreSQL extension are supported; done means establishing the supported behavior and documenting or implementing the required path.

Written by the indexing model from the issue text.

Description

When I write the following code in DuckDB:

CREATE SECRET ps (
TYPE postgres,
HOST '${ip}',
PORT ${port},
DATABASE ${dbname},
USER '${user}',
PASSWORD '${password}'
);

ATTACH 'dbname=${dbname}' AS gp (TYPE postgres, SECRET ps);

CALL postgres_execute('gp', 'SELECT * FROM gp.dw.getcombinesn(''HF52RT0006'')');
I encounter the following error:

ERROR: cross-database references are not implemented: gp.dw.getcombinesn
Is it possible to directly call Greenplum functions using the Postgres extension in DuckDB?

Dominant language
C++
Stars
372
Forks
107
Avg merge
13h 55m
Merged PRs (30d)
13

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from duckdb/duckdb-postgres

All issues in duckdb/duckdb-postgres

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.