Configure an Internal Command Datasource
When you select to create a Data Source type of Internal Command you will see the following dialog:
SQL
Specify the SQL command to retrieve the data from the PostgreSQL database. You may use the Test SQL... button to check your SQL statement.
Name
Enter a Name for the Data Source
Once you click OK you will be able to configure the General Data Share Connection Details.