diff --git a/automation/molecule/default/converge.yml b/automation/molecule/default/converge.yml index 96076a0bd..8612432a9 100644 --- a/automation/molecule/default/converge.yml +++ b/automation/molecule/default/converge.yml @@ -62,7 +62,7 @@ enable_pg_partman: true enable_citus: "{{ 'false' if ansible_distribution_version == '24.04' else 'true' }}" # TODO Ubuntu 24.04 enable_paradedb: "{{ 'false' if ansible_distribution_release == 'bullseye' else 'true' }}" # pg_search and pg_analytics (no packages for debian 11) - enable_pgvectorscale: "{{ 'true' if ansible_distribution_release in ['bookworm', 'jammy', 'noble'] else 'false' }}" # only deb packages are available + enable_pgvectorscale: true # "{{ 'true' if ansible_distribution_release in ['bookworm', 'jammy', 'noble'] else 'false' }}" # only deb packages are available # create extension postgresql_schemas: - { schema: "paradedb", db: "postgres", owner: "postgres" } # pg_search must be installed in the paradedb schema. diff --git a/automation/roles/pre-checks/tasks/extensions.yml b/automation/roles/pre-checks/tasks/extensions.yml index ed684fecf..ca41ef0c3 100644 --- a/automation/roles/pre-checks/tasks/extensions.yml +++ b/automation/roles/pre-checks/tasks/extensions.yml @@ -13,6 +13,26 @@ - (enable_timescale | default(false) | bool) or (enable_timescaledb | default(false) | bool) - postgresql_version | string is version(timescale_minimal_pg_version | default(12) | string, '<') +- name: Timescale (pgvectorscale) | Checking PostgreSQL version + run_once: true + ansible.builtin.fail: + msg: + - "The current PostgreSQL version ({{ postgresql_version }}) is not supported by the pgvectorscale." + - "PostgreSQL version must be {{ pgvectorscale_minimal_pg_version | default(15) }} or higher." + when: + - enable_pgvectorscale | default(false) | bool + - postgresql_version | string is version(pgvectorscale_minimal_pg_version | default(15) | string, '<') + +- name: Timescale (pgvectorscale) | Checking supported operating system and version + run_once: true + ansible.builtin.fail: + msg: + - "pgvectorscale is not supported on {{ ansible_distribution }} {{ ansible_distribution_release }}." + - "Supported OS: Debian (bookworm), Ubuntu (jammy, noble)." + when: + - enable_pgvectorscale | default(false) | bool + - not (ansible_os_family == "Debian" and ansible_distribution_release in ['bookworm', 'jammy', 'noble']) + - name: ParadeDB | Checking PostgreSQL version run_once: true ansible.builtin.fail: