]> granicus.if.org Git - postgresql/commitdiff
Fix breakage introduced in pg_lsn_in()
authorPeter Eisentraut <peter@eisentraut.org>
Sun, 30 Jun 2019 11:25:33 +0000 (13:25 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Sun, 30 Jun 2019 11:25:33 +0000 (13:25 +0200)
Using PG_RETURN_LSN() from non-fmgr pg_lsn_in_internal() happened to
work on some platforms, but should just be a plain "return".

src/backend/utils/adt/pg_lsn.c

index eb586851529e1a9a143ca51e8292f8efc50ec1eb..2d4b4bf3d8a025c180c888e20752678504dd8487 100644 (file)
@@ -53,7 +53,7 @@ pg_lsn_in_internal(const char *str, bool *have_error)
        off = (uint32) strtoul(str + len1 + 1, NULL, 16);
        result = ((uint64) id << 32) | off;
 
-       PG_RETURN_LSN(result);
+       return result;
 }
 
 Datum