guedes / ldap_fdw

A LDAP Foreign Data Wrapper for PostgreSQL
31 stars 10 forks source link

improve columns declaration and usage #9

Open guedes opened 11 years ago

guedes commented 11 years ago

Some ways to use:

CREATE FOREIGN TABLE xxxx (
    dn text,
    object_body text
) .... OPTIONS ( ... , exclude_attributes 'userPassword, homeDirectory')

Columns could be declared explicitly so ldap_fdw retrieve only them.

CREATE FOREIGN TABLE xxxx (
    dn text,
    homeDirectory text[]
) ....