17
17
18
18
#include "postgres.h"
19
19
20
+ #include "nodes/value.h"
21
+ #include "postgres.h"
22
+
20
23
#include "access/heapam.h"
21
24
#include "access/table.h"
22
25
#include "access/tableam.h"
@@ -336,7 +339,7 @@ form_strings_vector(List *relnames)
336
339
337
340
foreach (lc , relnames )
338
341
{
339
- char * relname = ( lfirst_node ( String , lc ))-> sval ;
342
+ char * relname = strVal ( lfirst ( lc ));
340
343
341
344
rels [i ++ ] = CStringGetTextDatum (relname );
342
345
}
@@ -359,9 +362,9 @@ deform_strings_vector(Datum datum)
359
362
& values , NULL , & nelems );
360
363
for (i = 0 ; i < nelems ; ++ i )
361
364
{
362
- String * s = makeNode ( String ) ;
365
+ Value * s ;
363
366
364
- s -> sval = pstrdup (TextDatumGetCString (values [i ]));
367
+ s = makeString ( pstrdup (TextDatumGetCString (values [i ]) ));
365
368
relnames = lappend (relnames , s );
366
369
}
367
370
@@ -448,7 +451,7 @@ load_fss(uint64 fs, int fss, OkNNrdata *data, List **relnames)
448
451
elog (ERROR , "unexpected number of features for hash (" \
449
452
UINT64_FORMAT ", %d):\
450
453
expected %d features, obtained %d" ,
451
- fs , fss , ncols , DatumGetInt32 (values [2 ]));
454
+ fs , fss , data -> cols , DatumGetInt32 (values [2 ]));
452
455
}
453
456
else
454
457
success = false;
@@ -583,7 +586,7 @@ update_fss(uint64 fs, int fss, OkNNrdata *data, List *relnames)
583
586
*/
584
587
elog (ERROR , "AQO data piece (" UINT64_FORMAT " %d) concurrently"
585
588
" updated by a stranger backend." ,
586
- fhash , fsshash );
589
+ fs , fss );
587
590
result = false;
588
591
}
589
592
}
0 commit comments