Skip to content
Snippets Groups Projects
Commit 4e7f166c authored by Michael Paquier's avatar Michael Paquier
Browse files

wal_utils: Adjust comment about bytea -> text conversion

parent 9022811a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -512,9 +512,14 @@ archive_get_size(PG_FUNCTION_ARGS)
/*
* archive_get_data
*
* Read a portion of data in an archive folder defined by PGARCHIVE,
* and return it as bytea. If bytes_to_read is negative or higher
* than the file's size, read the whole file.
* Read a portion of data in an archive folder defined by PGARCHIVE, and
* return it as bytea. If bytes_to_read is negative or higher than the
* file's size, read the whole file.
*
* Even if data is returned in binary format, it is always possible to
* convert it to text using encode(data, 'escape'), which is recommended
* way of doing for small files like timeline history files, so we don't
* bother having a text version of this function.
*/
Datum
archive_get_data(PG_FUNCTION_ARGS)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment