U
U
Unsacrified2015-02-17 21:02:05
PostgreSQL
Unsacrified, 2015-02-17 21:02:05

What is the internal representation of data in PostgreSQL?

To work with libpq, you need to know the internal representation of data in PostgreSQL, but I cannot find this information in the official documentation, and indeed on the Internet. Yes, of course, you can use a text representation, not a binary one, but this is an overhead for converting to / from strings, and you really don’t want to parse human-readable strings. References to sources like "src/backend/utils/adt/numeric.c::numeric_recv()" did not bring any benefit.
What is this notorious "server storage format"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2015-02-17
@gbg

Numeric values ​​of type integer come in network byte order , numeric depends on the implementation you refer to in the question.
Text and so can be obtained by text.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question