The Vertica Forum recently got a makeover! Let us know what you think by filling out this short, anonymous survey.
Please take this survey to help us learn more about how you use third party tools. Your input is greatly appreciated!
Set a Client Connection Label
![[Deleted User]](https://us.v-cdn.net/6029397/uploads/defaultavatar/nD0LWW9MQTB29.jpg)
This tip was authored by Jim Knicely.
When you connect to a Vertica database you can set a client connection label to help you later identify the connection.
Example:
=> SELECT SET_CLIENT_LABEL('Daily Load'); SET_CLIENT_LABEL -------------------------------- client_label set to Daily Load (1 row) => SELECT GET_CLIENT_LABEL(); GET_CLIENT_LABEL ------------------ Daily Load (1 row) => SELECT client_label FROM sessions WHERE session_id = current_session(); client_label -------------- Daily Load (1 row)
Have fun!
1
Comments
Hi!
It depends on "client", JDBC/ODBC/Python driver/UDx has another approach. With UDx you can not query database.