Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

permission denied to set parameter "client_min_messages" to "notice"

Tags:

I have a redshift cluster launched and running on aws and the inbound query is authorized by configuring the VPC security group

Then I try to connect to the redshift with pgAdmin and received following error

An error has occurred:
ERROR:  permission denied to set parameter "client_min_messages" to "notice"

and

An error has occurred:
Column not found in pgSet: "datlastsysoid"
like image 334
Hello lad Avatar asked Nov 22 '15 13:11

Hello lad


People also ask

What is Client_min_messages?

client_min_messages ( enum ) Controls which message levels are sent to the client. Valid values are DEBUG5 , DEBUG4 , DEBUG3 , DEBUG2 , DEBUG1 , LOG , NOTICE , WARNING , and ERROR . Each level includes all the levels that follow it. The later the level, the fewer messages are sent.

How do I connect to redshift cluster?

Sign in to your AWS Management Console and open the Amazon Redshift console at https://console.aws.amazon.com/redshift/. Open the details for your cluster and find and copy the ODBC URL, which contains the connection string. For details, see Amazon Redshift's getting started guide on how to get your connection string.


1 Answers

PgAdmin is mainly a Postgres client and is not a supported client for redshift. Due to its incompatibility, opening a connection always tries to set client_min_messages, but Redshift refuses to accept such a setting. This causes the error you experienced.

Redshift supports only the below parameters which have to be set at the cluster -

dev=# show all;
           name            |       setting        
---------------------------+----------------------
 analyze_threshold_percent | 10
 datestyle                 | ISO, MDY
 extra_float_digits        | 0
 query_group               | default
 search_path               | $user, public, admin
 statement_timeout         | 0
 wlm_query_slot_count      | 1
(7 rows)

You can use other clients like psql or SQLWorkbench/J as pgAdmin has deviations and doesn't support connections to redshift. You can also refer to this where an issue is reported on Github.

like image 78
Prabhakar Reddy Avatar answered Sep 22 '22 06:09

Prabhakar Reddy