Use define_augmethod in pg_hba provider