* Copyright (c) 2002-2010, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/dbsize.c,v 1.27 2010/01/19 05:50:18 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/dbsize.c,v 1.28 2010/01/23 21:29:00 tgl Exp $
*
*/
{
struct stat fst;
+ CHECK_FOR_INTERRUPTS();
+
if (strcmp(direntry->d_name, ".") == 0 ||
strcmp(direntry->d_name, "..") == 0)
continue;
while ((direntry = ReadDir(dirdesc, dirpath)) != NULL)
{
+ CHECK_FOR_INTERRUPTS();
+
if (strcmp(direntry->d_name, ".") == 0 ||
strcmp(direntry->d_name, "..") == 0)
continue;
{
struct stat fst;
+ CHECK_FOR_INTERRUPTS();
+
if (strcmp(direntry->d_name, ".") == 0 ||
strcmp(direntry->d_name, "..") == 0)
continue;
{
struct stat fst;
+ CHECK_FOR_INTERRUPTS();
+
if (segcount == 0)
snprintf(pathname, MAXPGPATH, "%s",
relationpath);