Re: set_config with is_local parameter true escapes transaction boundaries - Mailing list pgsql-bugs

From Tom Lane
Subject Re: set_config with is_local parameter true escapes transaction boundaries
Date
Msg-id 392925.1673397546@sss.pgh.pa.us
Whole thread Raw
In response to set_config with is_local parameter true escapes transaction boundaries  (Ruslan Talpa <ruslan.talpa@subzero.cloud>)
Responses Re: set_config with is_local parameter true escapes transaction boundaries
List pgsql-bugs
Ruslan Talpa <ruslan.talpa@subzero.cloud> writes:
> When executing set_config with the parameter ‘is_local’ set to true within a transaction, it is expected that the
configvalue is not available after the transaction however once the config is set in any transaction, current_setting
willreturn an empty string instead of null 

The GUC infrastructure doesn't recognize null as a value, so you
are making a distinction that the system doesn't.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: [OT] Microsoft: Kubernetes clusters hacked in malware campaign via PostgreSQL
Next
From: Amit Kapila
Date:
Subject: Re: pg_logical_slot_peek_changes with slots created with pglogical_output missed DML records,