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

Add Session Settings to `FOREIGN SERVER`s and `USER MAPPING`s

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, clickhouse, postgresql
Domain
databases

Research direction

Review the handling of CREATE SERVER and CREATE USER MAPPING options, along with the pg_clickhouse.session_settings GUC. Trace how query, user-mapping, server, and GUC settings are combined, then evaluate whether foreign-table settings should be supported. Done means the precedence is implemented consistently and the foreign-table decision is finalized.

Written by the indexing model from the issue text.

Description

enhancement interfaces sql

Record any ClickHouse Session Settings passed via the options to CREATE SERVER and CREATE USER MAPPING and merge them with settings from the pg_clickhouse.session_settings GUC. Precedence is:

  1. Settings in queries
  2. Settings for a user mapping
  3. Settings from a server
  4. Settings in the GUC

It probably doesn't make sense to support settings in foreign tables, since they may or may not be appropriate for a given query, but evaluate it and make a final call.

Dominant language
C
Stars
284
Forks
21
Avg merge
23h 1m
Merged PRs (30d)
20

Getting set up

We have not checked this project's setup files yet. 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 ClickHouse/pg_clickhouse

All issues in ClickHouse/pg_clickhouse

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.