mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Add debugging aid "bmsToString(Bitmapset *bms)".
This function has no direct callers at present, but it's convenient for manual use in a debugger, rather than having to inspect memory and do bit-counting in your head. In passing, get rid of useless outBitmapset() wrapper around _outBitmapset(); let's just export the function that does the work. Likewise for outToken(). Ashutosh Bapat, tweaked a bit by me Discussion: <CAFjFpRdiht8e1HTVirbubr4YzaON5iZTzFJjq909y4sU8M_6eA@mail.gmail.com>
This commit is contained in:
@ -551,16 +551,17 @@ extern PGDLLIMPORT Node *newNodeMacroHolder;
|
||||
/*
|
||||
* nodes/{outfuncs.c,print.c}
|
||||
*/
|
||||
extern char *nodeToString(const void *obj);
|
||||
|
||||
struct Bitmapset; /* not to include bitmapset.h here */
|
||||
struct StringInfoData; /* not to include stringinfo.h here */
|
||||
|
||||
extern void outNode(struct StringInfoData *str, const void *obj);
|
||||
extern void outToken(struct StringInfoData *str, const char *s);
|
||||
extern void outBitmapset(struct StringInfoData *str,
|
||||
const struct Bitmapset *bms);
|
||||
extern void outDatum(struct StringInfoData *str, uintptr_t value,
|
||||
int typlen, bool typbyval);
|
||||
extern char *nodeToString(const void *obj);
|
||||
extern char *bmsToString(const struct Bitmapset *bms);
|
||||
|
||||
/*
|
||||
* nodes/{readfuncs.c,read.c}
|
||||
|
Reference in New Issue
Block a user