branch: elpa/pg
commit e218a807382cfed08e079c815c15995b040af487
Author: Eric Marsden <[email protected]>
Commit: Eric Marsden <[email protected]>
Preliminary support for the Apache Datafusion variant.
---
pg.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pg.el b/pg.el
index 6f4b1d3687e..67dd5b71cb8 100644
--- a/pg.el
+++ b/pg.el
@@ -3232,9 +3232,11 @@ Uses text encoding ENCODING."
;; This function must be called before using the pgvector extension. It loads
the extension if
;; necessary, and sets up the parsing support for vector datatypes.
-(defun pg-vector-setup (con)
+(cl-defun pg-vector-setup (con)
"Prepare for use of VECTOR datatypes on PostgreSQL connection CON.
Return nil if the extension could not be set up."
+ (when (member (pgcon-server-variant con) '(datafusion))
+ (cl-return-from pg-vector-setup nil))
;; Failure of this CREATE EXTENSION statement does not necessarily mean that
the database variant
;; does not support the vector datatype (cf. for example CedarDB).
(condition-case nil