2Q PGConf is dedicated to exchanging & increasing knowledge about PostgreSQL. Join us for this unique opportunity taking place in NYC & Chicago to learn more about recent achievements and exciting future developments in PostgreSQL from world-class experts.
pgRouting is useful if you’re already using PostGIS. It can be handy for helping find various paths and routes between locations, here’s a primer on getting started with it.
cume_dist computes the %age of rows that are ‘less than or equal,’ while percent_rank computes those that are ‘less than’ the current row, except it also assumes the current row isn’t in the partition.
Select for update is usually what you want when grabbing a value that you’re going to update right after, but here we see where using xmin could be a valid approach.