You've already forked pgvecto.rs
mirror of
https://github.com/tensorchord/pgvecto.rs.git
synced 2025-09-15 08:41:07 +03:00
* feat: transactional CREATE/DROP Signed-off-by: usamoi <usamoi@outlook.com> * test: transaction ddl Signed-off-by: usamoi <usamoi@outlook.com> --------- Signed-off-by: usamoi <usamoi@outlook.com>
24 lines
386 B
Bash
Executable File
24 lines
386 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
d=$(psql -U postgres -tAqX -c "SELECT CURRENT_SETTING('data_directory')")/pg_vectors/indexes
|
|
|
|
a=$(sudo ls -l $d | wc -l)
|
|
|
|
printf "entries = $a\n"
|
|
|
|
psql -f $(dirname $0)/test.sql
|
|
|
|
sleep 1
|
|
|
|
b=$(sudo ls -l $d | wc -l)
|
|
|
|
printf "entries = $b\n"
|
|
|
|
if [ "$a" == "$b" ]; then
|
|
echo "Transaction test [OK]"
|
|
else
|
|
echo "Transaction test [FAILED]"
|
|
exit 1
|
|
fi
|