CData Python Connector for Greenplum

Build 21.0.7930

Establishing a Connection

The objects available within our connector are accessible from the "cdata.greenplum" module. In order to use the module's objects directly, the module must first be imported as below:

import cdata.greenplum as mod

From there, the connect() method can be called from the connector object to establish a connection using an appropriate connection string, such as the below:

mod.connect("User=user;Password=admin;Database=dbname;Server=127.0.0.1;Port=5432")

Connecting to Greenplum

To connect to Greenplum, set the Server, Port (the default port is 5432), and Database connection properties and set the User and Password you wish to use to authenticate to the server. If the Database property is not specified, the provider connects to the user's default database (it will be the same name as the user).

The CData Python Connector for Greenplum supports the md5, password, Kerberos and SASL (particulary, SCRAM-SHA-256) authentication methods.

The specific authentication method is setup in the pg_hba.conf file on the Greenplum Server. You may find instructions about authentication setup on the Greenplum Server here. The md5, password and SASL authentication methods do not require additional setup by the CData Python Connector for Greenplum.

Authenticating with Kerberos

The authentication with Kerberos is initiated by Greenplum Server when the CData Python Connector for Greenplum is trying to connect to it. You should setup Kerberos on the Greenplum Server to activate this authentication method. Once you have Kerberos authentication setup on the Greenplum Server, see Using Kerberos for details on how to authenticate with Kerberos by the provider.

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930