Skip to content

pgr_createTopology using UPDATE #381

Open
@dkastl

Description

@dkastl

This is just an idea for a major release. It's more of a personal reminder or start for a discussion.

Right now there are some functions, that populate the network table with values. The most prominent function is pgr_createTopology, another one might be pgr_brokenGraph pgr_labelGraph (see #376).

They are currently used like this:

SELECT * FROM pgr_createTopology(...);

or just

SELECT pgr_createTopology(...);

But wouldn't it look more "natural" to do something like:

UPDATE network_table SET (source, target) = pgr_createTopology();

Not sure this is even possible, but what we actually do is an update of the source and target column, and the columns might even have different names.

Note: I tested, that you can actually do something like UPDATE mytable SET (a,b) = (1,2);.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions