Download pgsql/include/server/replication/message.h from codekingpro/portable-devtools: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/datasets/codekingpro/portable-devtools/resolve/df58e70f9edde36aaca2d2aacc2440dd6c2f807d/pgsql/include/server/replication/message.h
- Command line
-
hf download hf://datasets/codekingpro/portable-devtools@df58e70f9edde36aaca2d2aacc2440dd6c2f807d/pgsql/include/server/replication/message.h
-
curl -L -o message.h https://huggingface.co/datasets/codekingpro/portable-devtools/resolve/df58e70f9edde36aaca2d2aacc2440dd6c2f807d/pgsql/include/server/replication/message.h
1.34 kB
| /*------------------------------------------------------------------------- | |
| * message.h | |
| * Exports from replication/logical/message.c | |
| * | |
| * Copyright (c) 2013-2023, PostgreSQL Global Development Group | |
| * | |
| * src/include/replication/message.h | |
| *------------------------------------------------------------------------- | |
| */ | |
| /* | |
| * Generic logical decoding message wal record. | |
| */ | |
| typedef struct xl_logical_message | |
| { | |
| Oid dbId; /* database Oid emitted from */ | |
| bool transactional; /* is message transactional? */ | |
| Size prefix_size; /* length of prefix */ | |
| Size message_size; /* size of the message */ | |
| /* payload, including null-terminated prefix of length prefix_size */ | |
| char message[FLEXIBLE_ARRAY_MEMBER]; | |
| } xl_logical_message; | |
| extern XLogRecPtr LogLogicalMessage(const char *prefix, const char *message, | |
| size_t size, bool transactional); | |
| /* RMGR API */ | |
| extern void logicalmsg_redo(XLogReaderState *record); | |
| extern void logicalmsg_desc(StringInfo buf, XLogReaderState *record); | |
| extern const char *logicalmsg_identify(uint8 info); | |