Skip to content

Commit 48ab24b

Browse files
docs(pgmq): clarify wording around reading messages (supabase#31699)
The original documentation made it sound like the `vt` parameter specified how long until the message became invisible, when in reality it is how long the message is invisible. See: https://github.com/tembo-io/pgmq/tree/main?tab=readme-ov-file#read-messages > Read 2 message from the queue. Make them invisible for 30 seconds. If the messages are not deleted or archived within 30 seconds, they will become visible again and can be read by another consumer.
1 parent 8a04638 commit 48ab24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/docs/content/guides/queues/pgmq.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ select * from pgmq.send_batch(
207207

208208
#### `read`
209209

210-
Read 1 or more messages from a queue. The VT specifies the delay in seconds between reading and the message becoming invisible to other consumers.
210+
Read 1 or more messages from a queue. The VT specifies the duration of time in seconds that the message is invisible to other consumers. At the end of that duration, the message is visible again and could be read by other consumers.
211211

212212
{/* prettier-ignore */}
213213
```sql

0 commit comments

Comments
 (0)