cyrilgdn / terraform-provider-postgresql

Terraform PostgreSQL provider
https://www.terraform.io/docs/providers/postgresql/
Mozilla Public License 2.0
356 stars 181 forks source link

Support for `copy_data` for `postgresql_subscription` #377

Open wwtan-ml opened 7 months ago

wwtan-ml commented 7 months ago

Hi there,

I'm having a requirement to set copy_data to false when creating a SUBSCRIPTION.

In PG it could be done with simple SQL query:

CREATE SUBSCRIPTION SUBNAME CONNECTION 'dbname=DBNAME host=DB_HOST port=5432 user=USER password=PASSWORD' PUBLICATION PUBNAME WITH (copy_data = false);

Affected Resource(s)

postgresql_subscription