8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x7f54602b7000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200!\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=47616, ...}) = 0 mmap(NULL, 2143624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f545fea2000 mprotect(0x7f545fead000, 2093056, PROT_NONE) = 0 mmap(0x7f54600ac000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x7f54600ac000 close(3) = 0 mprotect(0x7f54600ac000, 4096, PROT_READ) = 0 mprotect(0x7f54602b7000, 4096, PROT_READ) = 0 munmap(0x7f5463c78000, 35565) = 0 open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3 lseek(3, 0, SEEK_CUR) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=3164, ...}) = 0 mmap(NULL, 3164, PROT_READ, MAP_SHARED, 3, 0) = 0x7f5463c80000 lseek(3, 3164, SEEK_SET) = 3164 munmap(0x7f5463c80000, 3164) = 0 close(3) = 0 geteuid() = 500 open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3 lseek(3, 0, SEEK_CUR) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=3164, ...}) = 0 mmap(NULL, 3164, PROT_READ, MAP_SHARED, 3, 0) = 0x7f5463c80000 lseek(3, 3164, SEEK_SET) = 3164 munmap(0x7f5463c80000, 3164) = 0 close(3) = 0 stat("/data/postgresql/.pgpass", 0x7ffe6a68f720) = -1 ENOENT (No such file or directory) socket(PF_FILE, SOCK_STREAM, 0) = 3 fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 connect(3, {sa_family=AF_FILE, path="/var/run/postgresql/.s.PGSQL.5432"}, 110) = 0 getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 getsockname(3, {sa_family=AF_FILE, NULL}, [2]) = 0 poll([{fd=3, events=POLLOUT|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}]) sendto(3, "\0\0\0C\0\3\0\0user\0postgres\0database\0p"..., 67, MSG_NOSIGNAL, NULL, 0) = 67 poll([{fd=3, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLIN}]) recvfrom(3, "R\0\0\0\10\0\0\0\0S\0\0\0\36application_name\0c"..., 16384, 0, NULL, NULL) = 333 sendto(3, "Q\0\0\0\37CREATE DATABASE sletmig2;\n\0", 32, MSG_NOSIGNAL, NULL, 0) = 32 poll([{fd=3, events=POLLIN|POLLERR}], 1, -1 [WAITING 11 seconds] ) = 1 ([{fd=3, revents=POLLIN}]) recvfrom(3, "C\0\0\0\24CREATE DATABASE\0Z\0\0\0\5I", 16384, 0, NULL, NULL) = 27 sendto(3, "X\0\0\0\4", 5, MSG_NOSIGNAL, NULL, 0) = 5 close(3) = 0 exit_group(0) = ? strace -f createdb sletmig2 0,04s user 0,04s system 0% cpu 11,487 total