]> granicus.if.org Git - postgresql/commitdiff
test_shm_mq: Try again to fix compiler warning.
authorRobert Haas <rhaas@postgresql.org>
Wed, 15 Jan 2014 17:44:22 +0000 (12:44 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 15 Jan 2014 17:44:22 +0000 (12:44 -0500)
Per complaints from Andres Freund and Tom Lane.

contrib/test_shm_mq/setup.c

index e50f1f00139df95495d380d5ae1227763a003f50..3e762c49a6cdc61f154a3d0ec3128fc7be364750 100644 (file)
@@ -102,7 +102,7 @@ setup_dynamic_shared_memory(int64 queue_size, int nworkers,
                ereport(ERROR,
                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
                                 errmsg("queue size must be at least %lu bytes",
-                                       shm_mq_minimum_size)));
+                                       (unsigned long) shm_mq_minimum_size)));
 
        /*
         * Estimate how much shared memory we need.