StartupMessage

This is the first packet sent by the client on connection.

Attributes


Known parameters:

Other parameters are usually present (like client_encoding, DateStyle or TimeZone), but that depends on the client type and settings.

Example

Set the database if it is not specified by the client.

if ( ! context.packet.getParameter("database")) {
    context.packet.setParameter("database", "maindb");
}