@@ -333,7 +333,7 @@ switchToPresortedPrefixMode(PlanState *pstate)
333
333
*/
334
334
if (node -> bounded )
335
335
{
336
- SO1_printf ("Setting bound on presorted prefix tuplesort to: %ld \n" ,
336
+ SO1_printf ("Setting bound on presorted prefix tuplesort to: " INT64_FORMAT " \n" ,
337
337
node -> bound - node -> bound_Done );
338
338
tuplesort_set_bound (node -> prefixsort_state ,
339
339
node -> bound - node -> bound_Done );
@@ -417,9 +417,9 @@ switchToPresortedPrefixMode(PlanState *pstate)
417
417
* remaining in the large single prefix key group we think we've
418
418
* encountered.
419
419
*/
420
- SO1_printf ("Moving %ld tuples to presorted prefix tuplesort\n" , nTuples );
420
+ SO1_printf ("Moving " INT64_FORMAT " tuples to presorted prefix tuplesort\n" , nTuples );
421
421
node -> n_fullsort_remaining -= nTuples ;
422
- SO1_printf ("Setting n_fullsort_remaining to %ld \n" , node -> n_fullsort_remaining );
422
+ SO1_printf ("Setting n_fullsort_remaining to " INT64_FORMAT " \n" , node -> n_fullsort_remaining );
423
423
424
424
if (lastTuple )
425
425
{
@@ -449,7 +449,7 @@ switchToPresortedPrefixMode(PlanState *pstate)
449
449
* out all of those tuples, and then come back around to find another
450
450
* batch.
451
451
*/
452
- SO1_printf ("Sorting presorted prefix tuplesort with %ld tuples\n" , nTuples );
452
+ SO1_printf ("Sorting presorted prefix tuplesort with " INT64_FORMAT " tuples\n" , nTuples );
453
453
tuplesort_performsort (node -> prefixsort_state );
454
454
455
455
INSTRUMENT_SORT_GROUP (node , prefixsort );
@@ -462,7 +462,7 @@ switchToPresortedPrefixMode(PlanState *pstate)
462
462
* - n), so store the current number of processed tuples for use
463
463
* in configuring sorting bound.
464
464
*/
465
- SO2_printf ("Changing bound_Done from %ld to %ld \n" ,
465
+ SO2_printf ("Changing bound_Done from " INT64_FORMAT " to " INT64_FORMAT " \n" ,
466
466
Min (node -> bound , node -> bound_Done + nTuples ), node -> bound_Done );
467
467
node -> bound_Done = Min (node -> bound , node -> bound_Done + nTuples );
468
468
}
@@ -574,7 +574,7 @@ ExecIncrementalSort(PlanState *pstate)
574
574
* need to re-execute the prefix mode transition function to pull
575
575
* out the next prefix key group.
576
576
*/
577
- SO1_printf ("Re-calling switchToPresortedPrefixMode() because n_fullsort_remaining is > 0 (%ld )\n" ,
577
+ SO1_printf ("Re-calling switchToPresortedPrefixMode() because n_fullsort_remaining is > 0 (" INT64_FORMAT " )\n" ,
578
578
node -> n_fullsort_remaining );
579
579
switchToPresortedPrefixMode (pstate );
580
580
}
@@ -707,7 +707,7 @@ ExecIncrementalSort(PlanState *pstate)
707
707
*/
708
708
node -> outerNodeDone = true;
709
709
710
- SO1_printf ("Sorting fullsort with %ld tuples\n" , nTuples );
710
+ SO1_printf ("Sorting fullsort with " INT64_FORMAT " tuples\n" , nTuples );
711
711
tuplesort_performsort (fullsort_state );
712
712
713
713
INSTRUMENT_SORT_GROUP (node , fullsort );
@@ -776,7 +776,7 @@ ExecIncrementalSort(PlanState *pstate)
776
776
* current number of processed tuples for later use
777
777
* configuring the sort state's bound.
778
778
*/
779
- SO2_printf ("Changing bound_Done from %ld to %ld \n" ,
779
+ SO2_printf ("Changing bound_Done from " INT64_FORMAT " to " INT64_FORMAT " \n" ,
780
780
node -> bound_Done ,
781
781
Min (node -> bound , node -> bound_Done + nTuples ));
782
782
node -> bound_Done = Min (node -> bound , node -> bound_Done + nTuples );
@@ -787,7 +787,7 @@ ExecIncrementalSort(PlanState *pstate)
787
787
* sort and transition modes to reading out the sorted
788
788
* tuples.
789
789
*/
790
- SO1_printf ("Sorting fullsort tuplesort with %ld tuples\n" ,
790
+ SO1_printf ("Sorting fullsort tuplesort with " INT64_FORMAT " tuples\n" ,
791
791
nTuples );
792
792
tuplesort_performsort (fullsort_state );
793
793
@@ -828,7 +828,7 @@ ExecIncrementalSort(PlanState *pstate)
828
828
* on FIFO retrieval semantics when transferring them to the
829
829
* presorted prefix tuplesort.
830
830
*/
831
- SO1_printf ("Sorting fullsort tuplesort with %ld tuples\n" , nTuples );
831
+ SO1_printf ("Sorting fullsort tuplesort with " INT64_FORMAT " tuples\n" , nTuples );
832
832
tuplesort_performsort (fullsort_state );
833
833
834
834
INSTRUMENT_SORT_GROUP (node , fullsort );
@@ -847,12 +847,12 @@ ExecIncrementalSort(PlanState *pstate)
847
847
{
848
848
int64 currentBound = node -> bound - node -> bound_Done ;
849
849
850
- SO2_printf ("Read %ld tuples, but setting to %ld because we used bounded sort\n" ,
850
+ SO2_printf ("Read " INT64_FORMAT " tuples, but setting to " INT64_FORMAT " because we used bounded sort\n" ,
851
851
nTuples , Min (currentBound , nTuples ));
852
852
nTuples = Min (currentBound , nTuples );
853
853
}
854
854
855
- SO1_printf ("Setting n_fullsort_remaining to %ld and calling switchToPresortedPrefixMode()\n" ,
855
+ SO1_printf ("Setting n_fullsort_remaining to " INT64_FORMAT " and calling switchToPresortedPrefixMode()\n" ,
856
856
nTuples );
857
857
858
858
/*
@@ -942,7 +942,7 @@ ExecIncrementalSort(PlanState *pstate)
942
942
* Perform the sort and begin returning the tuples to the parent plan
943
943
* node.
944
944
*/
945
- SO1_printf ("Sorting presorted prefix tuplesort with >= %ld tuples\n" , nTuples );
945
+ SO1_printf ("Sorting presorted prefix tuplesort with " INT64_FORMAT " tuples\n" , nTuples );
946
946
tuplesort_performsort (node -> prefixsort_state );
947
947
948
948
INSTRUMENT_SORT_GROUP (node , prefixsort );
@@ -958,7 +958,7 @@ ExecIncrementalSort(PlanState *pstate)
958
958
* - n), so store the current number of processed tuples for use
959
959
* in configuring sorting bound.
960
960
*/
961
- SO2_printf ("Changing bound_Done from %ld to %ld \n" ,
961
+ SO2_printf ("Changing bound_Done from " INT64_FORMAT " to " INT64_FORMAT " \n" ,
962
962
node -> bound_Done ,
963
963
Min (node -> bound , node -> bound_Done + nTuples ));
964
964
node -> bound_Done = Min (node -> bound , node -> bound_Done + nTuples );
0 commit comments