Skip to content

Commit

Permalink
Add docs for pgmq (#30144)
Browse files Browse the repository at this point in the history
* Revert "Revert "Add docs for pgmq" (#30108)"

This reverts commit a265374.

* remove create_partitioned since its not yet supported

* re-arange pgmq extension docs

* update queue docs to match cron structure

* consistent header level for api functions
  • Loading branch information
olirice authored Dec 16, 2024
1 parent 2d12fb6 commit a208912
Show file tree
Hide file tree
Showing 4 changed files with 680 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,10 @@ export const database: NavMenuConstant = {
name: 'PostGIS: Geo queries',
url: '/guides/database/extensions/postgis',
},
{
name: 'pgmq: Queues',
url: '/guides/database/extensions/pgmq',
},
{
name: 'pgsodium (pending deprecation): Encryption Features',
url: '/guides/database/extensions/pgsodium',
Expand Down Expand Up @@ -1164,7 +1168,10 @@ export const queues: NavMenuConstant = {
{
name: 'References',
url: undefined,
items: [{ name: 'API', url: '/guides/queues/api' }],
items: [
{ name: 'API', url: '/guides/queues/api' },
{ name: 'PGMQ Extension', url: '/guides/queues/pgmq' },
],
},
],
}
Expand Down
7 changes: 7 additions & 0 deletions apps/docs/content/guides/database/extensions/pgmq.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
id: 'pgmq'
title: 'pgmq: Queues'
description: 'pgmq: Managed queues in Postgres'
---

See the [Supabase Cron docs](/docs/guides/queues).
2 changes: 1 addition & 1 deletion apps/docs/content/guides/queues/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ When you create a Queue in Supabase, you can choose to create helper database fu

Database functions in `pgmq_public` can be exposed via Supabase Data API so consumers client-side can call them. Visit the [Quickstart](/docs/guides/queues/quickstart) for an example.

## `pgmq_public.pop(queue_name)`
### `pgmq_public.pop(queue_name)`

Retrieves the next available message and deletes it from the specified Queue.

Expand Down
Loading

0 comments on commit a208912

Please sign in to comment.