Skip to content

Commit 78f31fa

Browse files
author
Commitfest Bot
committed
[CF 5771] v2 - Add README for catalog
This branch was automatically generated by a robot using patches from an email thread registered at: https://commitfest.postgresql.org/patch/5771 The branch will be overwritten each time a new patch version is posted to the thread, and also periodically to check for bitrot caused by changes on the master branch. Patch(es): https://www.postgresql.org/message-id/CA+v5N420MHs1A+qc6SOGUyYz5AdGS0Kmeq25g9=MzUFzHo1EBQ@mail.gmail.com Author(s): Florents Tselai
2 parents 5c8eda1 + 4d5e903 commit 78f31fa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/include/catalog/README

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Catalog
2+
3+
For more details see https://www.postgresql.org/docs/devel/bki.html
4+
5+
Below are some checklists for common scenarios.
6+
7+
## Adding a New Built-in SQL Command
8+
9+
1. Implement the function in C and place it in the appropriate directory under `src` (typically in `src/utils/adt`)
10+
2. Each function should have a unique integer OID. Run the script `src/include/catalog/unused_oids` to find available ranges.
11+
3. Add the entry to `pg_proc.dat` following the surrounding conventions.
12+
13+
More detailed documentation adding a new SQL command is available at
14+
https://www.postgresql.org/docs/devel/xfunc-c.html

0 commit comments

Comments
 (0)