Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add new routing runtime option: __spqr__execute_on #818

Merged
merged 2 commits into from
Nov 15, 2024
Merged

Add new routing runtime option: __spqr__execute_on #818

merged 2 commits into from
Nov 15, 2024

Conversation

reshke
Copy link
Collaborator

@reshke reshke commented Nov 15, 2024

Similat to Greenplum's one, allowing for execute custom sql on shards

db1=# select count(1) from jp4;
 count
-------
    99
  1901
(2 rows)

db1=# select count(1) from jp4 /* __spqr__execute_on: sh1 */;
 count
-------
    99
(1 row)

db1=# select count(1) from jp4 /* __spqr__execute_on: sh2 */;
 count
-------
  1901
(1 row)

db1=# select count(1) from jp4 ;
 count
-------
    99
  1901
(2 rows)

Similat to Greenplum's one, allowing for execute custom sql on shards

db1=# select count(1) from jp4;
 count
-------
    99
  1901
(2 rows)

db1=# select count(1) from jp4 /* __spqr__execute_on: sh1 */;
 count
-------
    99
(1 row)

db1=# select count(1) from jp4 /* __spqr__execute_on: sh2 */;
 count
-------
  1901
(1 row)

db1=# select count(1) from jp4 ;
 count
-------
    99
  1901
(2 rows)
@reshke reshke merged commit d5c6424 into master Nov 15, 2024
28 checks passed
@reshke reshke deleted the copy2pc branch November 16, 2024 19:44
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants