pg_featureserv icon indicating copy to clipboard operation
pg_featureserv copied to clipboard

Transaction API specification

Open dr-jts opened this issue 6 years ago • 3 comments

OGC API does not yet define transactions semantics.

dr-jts avatar Jan 06 '20 20:01 dr-jts

Part-4 draft is looking good.

It may tike a little time before it is adopted but it should not change much according to comments in this issue. https://github.com/opengeospatial/ogcapi-features/issues/366

I would love to see a pg_featureserv implementation. starting with create-replace-delete requirement class.

ideally, this implementation should not introduce new dependencies and rely on postgres/postgis to take care of everything. It must stay aligned with the philosophy behind pg_featureaerv documented here: https://access.crunchydata.com/documentation/pg_featureserv/1.2.0/introduction/

fredmorin avatar Nov 25 '23 03:11 fredmorin

Here is my attempt at fixing this issue https://github.com/CrunchyData/pg_featureserv/pull/152 https://github.com/CrunchyData/pg_featureserv/pull/153

fredmorin avatar Nov 25 '23 17:11 fredmorin

I am analyzing how to implement optimistic locking.

ETags is fairly easy to implement using an MD5 hash for the feature.

Implemening Last-Modified require enabling track_commit_timestamp on the database and querying pg_xact_commit_timestamp(xmin) for one feature.

The specification mentions "A requirements class is specified for each field, because the two options have different characteristics and API providers need to decide which option they can support."

I believe ETags is they ideal choice for pg_featureserv.

fredmorin avatar Nov 25 '23 21:11 fredmorin