-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kafka_fdw_get_watermarks: use bigint (2nd take) (#44)
* kafka_fdw_get_watermarks: the C symbol returns int64_t (and so does rdkafka), use bigint * kafka_fdw_get_watermarks: move function argument type changes into a new update script, bump the extension's version. * Remove PARALLEL SAFE label kafka_get_watermarks() function just to be on the safe side; it hardly makes sense to use it in parallel queries anyway. Co-authored-by: Felix Wischke (65278) <[email protected]>
- Loading branch information
Showing
3 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
DROP FUNCTION kafka_get_watermarks(IN regclass, OUT int, OUT int, OUT int); | ||
|
||
CREATE FUNCTION kafka_get_watermarks( | ||
IN rel regclass, | ||
OUT partition int, | ||
OUT offset_low bigint, | ||
OUT offset_high bigint) | ||
RETURNS SETOF record | ||
AS 'MODULE_PATHNAME', 'kafka_get_watermarks' | ||
LANGUAGE C STRICT; | ||
|
||
ALTER TABLE kafka_fdw_offset_dump ALTER COLUMN "offset" TYPE bigint; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# kafka FDW | ||
comment = 'kafka Foreign Data Wrapper for CSV formated messages' | ||
default_version = '0.0.2' | ||
default_version = '0.0.3' | ||
module_pathname = '$libdir/kafka_fdw' | ||
relocatable = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters