FWIW: As of HAPI FHIR 6.6.0 we no longer use those largeobject blobs for resources smaller than 4000 characters, and you can safely increase that offset too. One thing you could do is to make sure you're up to date (both HAPI FHIR and the starter project), run a resource reindex on the server with the
optimizeStorage flag set to true (which will migrate data into a text column and out of the largeobjects), run a vacuumlo on the database to clean up the old LOBs, then then proceed with upgrading Postgres.