Configure an Internal Function Datasource
When you select to create a Data Source type of Internal Function you will see the following dialog:
Click on the Refresh button to return a list of existing functions in the PostgreSQL database. You may then select one from the list taking care to pick a function that does actually return a dataset. You may also specify a list of parameters.
Once you click OK you will be able to configure the General Data Share Connection Details.