Blog Post

Azure Database Support Blog
1 MIN READ

Issue Modifying search_path Parameter for Azure Database for PostgreSQL

Josh_MSFT's avatar
Josh_MSFT
Icon for Microsoft rankMicrosoft
Mar 14, 2019
First published on MSDN on Oct 20, 2017
Azure Database for PostgreSQL users have recently reported an issue to us that occurs when setting a custom value for the search_path parameter from the Server parameters blade in the Azure Portal .  The issue is that this custom value is modified automatically by the service when saved.  For example:

A value entered of: "$user", public , gets transformed to """$user"", public" , as can be seen by executing the following query: SELECT reset_val FROM pg_settings WHERE name = 'search_path';


The aforementioned transformation breaks the search path in PostgreSQL.  The Product Group responsible for the Azure Database for PostgreSQL service has confirmed that this is a known issue.  While a permanent fix to address this is being worked on, the Product Group requests that users not modify the search_path parameter value at this time.  If modification is needed, please open a support case with us, as the Product Group will implement this change for you to avert this issue.  Please reference this blog post if you do.

We apologize for any inconveniences caused by this, and want everyone to know that we appreciate and value the continued feedback on our services.

Screenshots of the issue in action:


Modifying the value for the search_path parameter from the Server parameters blade on the Azure Portal.



Retrieving the search_path value via query post value modification.


Published Mar 14, 2019
Version 1.0
  • As an update, this issue was resolved some time ago and is thus no longer relevant.  This article was migrated from another platform.  We are currently working to get this removed.

  • dheeruymv's avatar
    dheeruymv
    Copper Contributor

    Hi,

    We're trying to update search_path with Microsoft API, update is not happening.

    End point: Microsoft.DBforPostgreSQL/flexibleServers/{{servername}}/configurations/{{configuration_name}}?api-version=2021-6-01.

     

    No change in search_path is observed in "server setting" for the particular server. In which API version does this fix is available.?