Skip to content

Commit

Permalink
Merge pull request #5687 from EnterpriseDB/lucianobotti-patch-2
Browse files Browse the repository at this point in the history
Update sequences.mdx
  • Loading branch information
djw-m authored May 28, 2024
2 parents 5b12f46 + 0c22cce commit 8c7eda9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions product_docs/docs/pgd/5/sequences.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ the next value.
```sql
-- determine highest sequence value across all nodes
SELECT max((x->'response'->'command_tuples'->0->>'nextval')::bigint)
FROM json_array_elements(
FROM jsonb_array_elements(
bdr.run_on_all_nodes(
E'SELECT nextval(\'public.sequence\');'
)::jsonb AS x;
)::jsonb) AS x;

-- turn into a galloc sequence
SELECT bdr.alter_sequence_set_kind('public.sequence'::regclass, 'galloc', $MAX + $MARGIN);
Expand Down

1 comment on commit 8c7eda9

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.