Available

Schema introspection

Point agol_fdw at an ArcGIS Online layer and it reads the whole definition — so nothing is lost in translation.

What it is

The introspect_layer() function fetches a hosted feature layer's JSON definition from ArcGIS Online and records every part of it in a metadata catalog inside the agol_fdw schema: fields and their types, geometry and spatial reference, edit-tracking columns, coded-value and range domains, subtypes, attribute rules (constraint, calculation, validation), relationships, and contingent value groups.

That catalog is the single source of truth the rest of the extension relies on — for generating DDL, building triggers, and reconciling schema drift later.

Why it matters

See it

SELECT agol_fdw.introspect_layer(
  layer_url := 'https://services.arcgis.com/.../FeatureServer/0',
  layer_name := 'poles'
);

-- now the catalog holds every field, domain, subtype, rule,
-- relationship, and contingent value group for that layer.
Introspection is the first step of materialization — but you can also call it on its own to inspect a layer before committing to a full materialize.

Related

← Back to home