2 ms·
Just because I spent a few hours in the postgres parser guts lately: Postgres doesn't quite have the span of the error, just a single location :). We can of co
by anarazel 2y ago
Just because I spent a few hours in the postgres parser guts lately:
Postgres doesn't quite have the span of the error, just a single location :). We can of course measure the length of the token at the error point, but that isn't quite the same, as the cause of the error does not have to be a single token.
postgres[122581][1]=# SELECT * FROM kdjfkdj;
ERROR: 42P01: relation "kdjfkdj" does not exist
LINE 1: SELECT * FROM kdjfkdj;
^