Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Neptune650 committed Oct 23, 2024
1 parent 6a8be03 commit 9e2a4ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions pgmq-extension/sql/pgmq--1.4.4--1.5.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BEGIN
(
SELECT msg_id
FROM pgmq.%I
WHERE vt <= clock_timestamp() AND (message @> %L OR (%L = '{}'::jsonb AND message IS NULL))
WHERE vt <= clock_timestamp() AND message @> %L
ORDER BY msg_id ASC
LIMIT $1
FOR UPDATE SKIP LOCKED
Expand All @@ -31,7 +31,7 @@ BEGIN
WHERE m.msg_id = cte.msg_id
RETURNING m.msg_id, m.read_ct, m.enqueued_at, m.vt, m.message;
$QUERY$,
qtable, conditional, conditional, qtable, make_interval(secs => vt)
qtable, conditional, qtable, make_interval(secs => vt)
);
RETURN QUERY EXECUTE sql USING qty;
END;
Expand Down Expand Up @@ -67,7 +67,7 @@ BEGIN
(
SELECT msg_id
FROM pgmq.%I
WHERE vt <= clock_timestamp() AND (message @> %L OR (%L = '{}'::jsonb AND message IS NULL))
WHERE vt <= clock_timestamp() AND message @> %L
ORDER BY msg_id ASC
LIMIT $1
FOR UPDATE SKIP LOCKED
Expand All @@ -80,7 +80,7 @@ BEGIN
WHERE m.msg_id = cte.msg_id
RETURNING m.msg_id, m.read_ct, m.enqueued_at, m.vt, m.message;
$QUERY$,
qtable, conditional, conditional, qtable, make_interval(secs => vt)
qtable, conditional, qtable, make_interval(secs => vt)
);

FOR r IN
Expand Down
8 changes: 4 additions & 4 deletions pgmq-extension/sql/pgmq.sql
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ BEGIN
(
SELECT msg_id
FROM pgmq.%I
WHERE vt <= clock_timestamp() AND (message @> %L OR (%L = '{}'::jsonb AND message IS NULL))
WHERE vt <= clock_timestamp() AND message @> %L
ORDER BY msg_id ASC
LIMIT $1
FOR UPDATE SKIP LOCKED
Expand All @@ -84,7 +84,7 @@ BEGIN
WHERE m.msg_id = cte.msg_id
RETURNING m.msg_id, m.read_ct, m.enqueued_at, m.vt, m.message;
$QUERY$,
qtable, conditional, conditional, qtable, make_interval(secs => vt)
qtable, conditional, qtable, make_interval(secs => vt)
);
RETURN QUERY EXECUTE sql USING qty;
END;
Expand Down Expand Up @@ -119,7 +119,7 @@ BEGIN
(
SELECT msg_id
FROM pgmq.%I
WHERE vt <= clock_timestamp() AND (message @> %L OR (%L = '{}'::jsonb AND message IS NULL))
WHERE vt <= clock_timestamp() AND message @> %L
ORDER BY msg_id ASC
LIMIT $1
FOR UPDATE SKIP LOCKED
Expand All @@ -132,7 +132,7 @@ BEGIN
WHERE m.msg_id = cte.msg_id
RETURNING m.msg_id, m.read_ct, m.enqueued_at, m.vt, m.message;
$QUERY$,
qtable, conditional, conditional, qtable, make_interval(secs => vt)
qtable, conditional, qtable, make_interval(secs => vt)
);
FOR r IN
Expand Down

0 comments on commit 9e2a4ca

Please sign in to comment.