| 1 |
typedef void (*pgstat_page) (pgstattuple_type *, Relation, BlockNumber, |
| 2 |
BufferAccessStrategy); |
| 3 |
|
| 4 |
typedef char (*get_relation_stats_hook_type) (int *root, |
| 5 |
unsigned *rte, |
| 6 |
char attnum, |
| 7 |
float *vardata); |
| 8 |
|
| 9 |
void similarity_dist(int m) |
| 10 |
{ |
| 11 |
char chars[BIGGEST(BIGGEST(TZ_MAX_CHARS + 1, 3 /* sizeof gmt */ ), |
| 12 |
*here)]; |
| 13 |
|
| 14 |
float4 res = DatumGetFloat4(FunctionCall2(similarity, |
| 15 |
(here), |
| 16 |
here)); |
| 17 |
|
| 18 |
if (es->verbose) |
| 19 |
{ |
| 20 |
char *sql = strVal(list_nth(fdw_private, |
| 21 |
here)); |
| 22 |
} |
| 23 |
|
| 24 |
rb->allocfunc(1); |
| 25 |
rb2.allocfunc(7); |
| 26 |
} |