-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6326 from EnterpriseDB/release/2024-12-05a
Release/2024-12-05a
- Loading branch information
Showing
73 changed files
with
1,054 additions
and
926 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
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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,6 @@ | ||
--- | ||
title: Configuring pgvector | ||
navTitle: Configuring | ||
--- | ||
|
||
No additional configuration is required after enabling the `pgvector` extension. |
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,23 @@ | ||
--- | ||
title: 'pgvector' | ||
indexCards: none | ||
navigation: | ||
- rel_notes | ||
- installing | ||
- configuring | ||
- using | ||
directoryDefaults: | ||
product: pgvector | ||
--- | ||
|
||
`pgvector` is an extension released as open source software under the PostgreSQL License. | ||
|
||
`pgvector` provides vector similarity search capabilities and the ability to store embeddings for retrieval augmented generation. | ||
|
||
For more information about `pgvector`, see: | ||
|
||
- [Installing pgvector](installing.mdx) | ||
- [Configuring pgvector](configuring.mdx) | ||
- [Using pgvector](using.mdx) | ||
|
||
|
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,71 @@ | ||
--- | ||
title: Installing pgvector | ||
navTitle: Installing | ||
--- | ||
|
||
`pgvector` is supported on the same platforms as the Postgres distribution you're using. Support for `pgvector` starts with Postgres 13. For details, see: | ||
|
||
- [EDB Postgres Advanced Server Product Compatibility](https://www.enterprisedb.com/platform-compatibility#epas) | ||
- [PostgreSQL Product Compatibility](https://www.enterprisedb.com/resources/platform-compatibility#pg) | ||
- [EDB Postgres Extended Server Product Compatibility](https://www.enterprisedb.com/resources/platform-compatibility#epas_extended) | ||
|
||
## Installation | ||
|
||
Before you begin the installation process: | ||
|
||
- Install Postgres. See: | ||
|
||
- [Installing EDB Postgres Advanced Server](/epas/latest/installing/) | ||
|
||
- [Installing PostgreSQL](https://www.postgresql.org/download/) | ||
|
||
- [Installing EDB Postgres Extended Server](/pge/latest/installing/) | ||
|
||
- Set up the repository. | ||
|
||
Setting up the repository is a one-time task. If you've already set up your repository, you don't need to perform this step. | ||
|
||
To set up the repository, go to [EDB repositories](https://www.enterprisedb.com/repos-downloads) and follow the instructions provided there. | ||
|
||
## Install the package | ||
|
||
The syntax for the package install command is: | ||
|
||
```shell | ||
# For SLES, CentOS, RHEL and its derivatives | ||
sudo <package-manager> -y install edb-<postgres><postgres_version>-pgvector0 | ||
|
||
# For Debian and Ubuntu | ||
sudo <package-manager> -y install edb-<postgres><postgres_version>-pgvector-0 | ||
``` | ||
|
||
Where: | ||
- `<package-manager>`is the package manager used with your operating system: | ||
|
||
| Package manager | Operating system | | ||
| --------------- | -------------------------------- | | ||
| dnf | RHEL 8/9 and derivatives | | ||
| yum | RHEL 7 and derivatives, CentOS 7 | | ||
| zypper | SLES | | ||
| apt-get | Debian and derivatives | | ||
|
||
- `<postgres>` is the distribution of Postgres you're using: | ||
|
||
| Postgres distribution | Value | | ||
| ---------------------------- | ---------- | | ||
| PostgreSQL | pg | | ||
| EDB Postgres Advanced Server | as | | ||
| EDB Postgres Extended Server | postgresextended | | ||
|
||
- `<postgres_version>` is the version of Postgres you're using. | ||
|
||
For example, to install pgvector for EDB Postgres Advanced Server 15 on a RHEL 8 platform: | ||
|
||
```shell | ||
sudo dnf -y install edb-as15-pgvector0 | ||
``` | ||
|
||
|
||
|
||
|
||
|
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,10 @@ | ||
--- | ||
title: 'pgvector release notes' | ||
navTitle: "Release notes" | ||
indexCards: none | ||
--- | ||
The pgvector documentation describes the latest version of pgvector, including minor releases and patches. These release notes cover what was new in each release. For new functionality introduced in a minor or patch release, there are also indicators in the content about the release that introduced the feature. | ||
|
||
| Version | Release Date | | ||
| ----------------------------------- | ------------ | | ||
| [0.8.0](pgvector_0.8.0_rel_notes) | 30 Oct 2024 | |
6 changes: 6 additions & 0 deletions
6
advocacy_docs/pg_extensions/pgvector/rel_notes/pgvector_0.8.0_rel_notes.mdx
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,6 @@ | ||
--- | ||
title: Release notes for pgvector | ||
navTitle: "Version 0.8.0" | ||
--- | ||
|
||
For `pgvector` release notes, see the [pgvector official change log](https://github.com/pgvector/pgvector/blob/master/CHANGELOG.md). |
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,6 @@ | ||
--- | ||
title: Using pgvector | ||
navTitle: Using | ||
--- | ||
|
||
For more information on using `pgvector`, see the [Getting Started](https://github.com/pgvector/pgvector?tab=readme-ov-file#getting-started) guide in the pgvector official documentation. |
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
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
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
2 changes: 1 addition & 1 deletion
2
..._reference/epas_compat_bip_guide/03_built-in_packages/06_dbms_lob/11_substr.mdx
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
43 changes: 43 additions & 0 deletions
43
...rence/epas_compat_bip_guide/03_built-in_packages/18_dbms_xmldom/appendchild.mdx
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,43 @@ | ||
--- | ||
title: "APPENDCHILD" | ||
--- | ||
|
||
The `APPENDCHILD` function adds the node at the end of the list of children of a particular node. It returns the newly added node and if the node is already present, it removes the existing node before adding new node. | ||
|
||
You can append more than one child to a document node. However, a node cannot belong to several documents. | ||
|
||
When appending elements, you cannot add an element to itself. Additionally, if the same element is added twice, only the latest is considered. | ||
|
||
``` | ||
APPENDCHILD(n DOMNode, newChild IN DOMNode) RETURN DOMNode | ||
``` | ||
|
||
## Parameters | ||
|
||
`n` | ||
|
||
The `DOMNode` where the new node is to be added. | ||
|
||
`newchild` | ||
|
||
The child node to be added to the existing list of children of node n. | ||
|
||
## Examples | ||
|
||
This example creates a new XML `DOMDocument` named `l_domdoc` and a new `DOMElement` named `l_department_element` with tag name `Departments`. It then appends the `DOMElement` as a child of the `DOMDocument`. | ||
|
||
```sql | ||
DECLARE | ||
l_domdoc DBMS_XMLDOM.DOMDocument; | ||
l_department_element DBMS_XMLDOM.DOMElement; | ||
l_xmltype XMLTYPE; | ||
|
||
|
||
BEGIN | ||
l_domdoc := DBMS_XMLDOM.NEWDOMDOCUMENT(); | ||
l_department_element := DBMS_XMLDOM.CREATEELEMENT(l_domdoc, 'Departments' ); | ||
PERFORM DBMS_XMLDOM.appendChild(DBMS_XMLDOM.MAKENODE(l_domdoc), DBMS_XMLDOM.MAKENODE(l_department_element)); | ||
l_xmltype := DBMS_XMLDOM.GETXMLTYPE(l_domdoc); | ||
DBMS_OUTPUT.PUT_LINE(l_xmltype.getStringVal()); | ||
END; | ||
``` |
39 changes: 39 additions & 0 deletions
39
...nce/epas_compat_bip_guide/03_built-in_packages/18_dbms_xmldom/createelement.mdx
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,39 @@ | ||
--- | ||
title: "CREATEELEMENT" | ||
--- | ||
|
||
The `CREATEELEMENT` function creates and returns a DOMElement. | ||
|
||
``` | ||
CREATEELEMENT( doc DOMDocument, tagname IN VARCHAR2) RETURN DOMElement | ||
``` | ||
|
||
## Parameters | ||
|
||
`doc` | ||
|
||
Any `DOMDocument`. | ||
|
||
`tagname` | ||
|
||
Tag name to be given to the new `DOMElement`. | ||
|
||
## Examples | ||
|
||
This example creates a new XML `DOMDocument` named `l_domdoc` and a new `DOMElement` named `l_department_element` with tag name `Departments`. It then appends the `DOMElement` as a child of the `DOMDocument`. | ||
|
||
```sql | ||
DECLARE | ||
l_domdoc DBMS_XMLDOM.DOMDocument; | ||
l_department_element DBMS_XMLDOM.DOMElement; | ||
l_xmltype XMLTYPE; | ||
|
||
|
||
BEGIN | ||
l_domdoc := DBMS_XMLDOM.NEWDOMDOCUMENT(); | ||
l_department_element := DBMS_XMLDOM.CREATEELEMENT(l_domdoc, 'Departments' ); | ||
PERFORM DBMS_XMLDOM.APPENDCHILD(DBMS_XMLDOM.MAKENODE(l_domdoc), DBMS_XMLDOM.MAKENODE(l_department_element)); | ||
l_xmltype := DBMS_XMLDOM.GETXMLTYPE(l_domdoc); | ||
DBMS_OUTPUT.PUT_LINE(l_xmltype.getStringVal()); | ||
END; | ||
``` |
45 changes: 45 additions & 0 deletions
45
...ce/epas_compat_bip_guide/03_built-in_packages/18_dbms_xmldom/createtextnode.mdx
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,45 @@ | ||
--- | ||
title: "CREATETEXTNODE" | ||
--- | ||
|
||
The `CREATETEXTNODE` function creates and returns a DOMText node. | ||
|
||
``` | ||
CREATETEXTNODE( doc DOMDocument, data IN VARCHAR2) RETURN DOMText | ||
``` | ||
|
||
## Parameters | ||
|
||
`doc` | ||
|
||
Any `DOMDocument`. | ||
|
||
`data` | ||
|
||
Content provided for the `DOMText` node. | ||
|
||
## Examples | ||
|
||
This example creates a new XML `DOMDocument`, a `DOMElement` with tag name “Departments” and a text node with “Depts list” as its value. The `DOMElement` is appended as a child to the `DOMDocument`, and the text node as a child to the `DOMElement`. | ||
|
||
```sql | ||
DECLARE | ||
l_domdoc DBMS_XMLDOM.DOMDocument; | ||
l_root_node DBMS_XMLDOM.DOMNode; | ||
l_department_element DBMS_XMLDOM.DOMElement; | ||
l_departments_node DBMS_XMLDOM.DOMNode; | ||
l_name_text DBMS_XMLDOM.DOMText; | ||
l_xmltype XMLTYPE; | ||
|
||
|
||
BEGIN | ||
l_domdoc := DBMS_XMLDOM.NEWDOMDOCUMENT; | ||
l_root_node := DBMS_XMLDOM.MAKENODE(l_domdoc); | ||
l_department_element := DBMS_XMLDOM.CREATEELEMENT(l_domdoc, 'Departments' ); | ||
l_departments_node := DBMS_XMLDOM.APPENDCHILD(l_root_node,DBMS_XMLDOM.MAKENODE(l_department_element)); | ||
l_name_text := DBMS_XMLDOM.CREATETEXTNODE(l_domdoc, 'Depts list' ); | ||
PERFORM DBMS_XMLDOM.APPENDCHILD(l_departments_node,DBMS_XMLDOM.MAKENODE(l_name_text)); | ||
l_xmltype := DBMS_XMLDOM.GETXMLTYPE(l_domdoc); | ||
DBMS_OUTPUT.PUT_LINE(l_xmltype.getStringVal()); | ||
END; | ||
``` |
Oops, something went wrong.
4bf9baa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://edb-docs.netlify.app as production
🚀 Deployed on https://6752157878490f152131143a--edb-docs.netlify.app
4bf9baa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://edb-docs-staging.netlify.app as production
🚀 Deployed on https://6752168a1f8b891ac6f17e5a--edb-docs-staging.netlify.app