In my dbt model definition, I want to run a config block, but only if the database type is postgresql. Is there a way to do that? Example model below:
{{
config(
post_hook='create index if not exists "{{ this.name }}__idx_on_key" on {{ this }} ("key")'
)
}}
select * from {{ ref('stg_customer') }}