pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_upgrade slowness for databases with many tables
6+ messages / 4 participants
[nested] [flat]

* pg_upgrade slowness for databases with many tables
@ 2015-05-22 16:10  Stefan Seifert <nine@detonation.org>
  0 siblings, 3 replies; 6+ messages in thread

From: Stefan Seifert @ 2015-05-22 16:10 UTC (permalink / raw)
  To: pgsql-bugs

Hi,

upgrading a database containing > 90000 tables and about the same number of 
views and indexes with pg_upgrade takes several hours. I've started the 
upgrade more than five hours ago and the "Creating dump of database schemas" 
step is still not finished.

ps xaf output:

60709 pts/10   S+     0:00  |       \_ sudo -u postgres pg_upgrade -d 
/var/lib/pgsql/data.intern -D /var/lib/pgsql/data -b /usr/lib/postgresql92/bin 
-B /usr/lib/postgresql94/bin -j12 -k
60710 pts/10   S+     0:00  |           \_ pg_upgrade -d 
/var/lib/pgsql/data.intern -D /var/lib/pgsql/data -b /usr/lib/postgresql92/bin 
-B /usr/lib/postgresql94/bin -j12 -k
60806 pts/10   S+     0:00  |               \_ pg_upgrade -d 
/var/lib/pgsql/data.intern -D /var/lib/pgsql/data -b /usr/lib/postgresql92/bin 
-B /usr/lib/postgresql94/bin -j12 -k
60809 pts/10   S+     0:00  |                   \_ sh -c 
"/usr/lib/postgresql94/bin/pg_dump" --host "/data/pgsql" --port 50432 --
username "postgres" --schema-only --quote-all-identifiers --binary-upgrade --
format=custom  --file="pg_upgrade_dump_16428.custom" "zms" >> 
"pg_upgrade_dump_16428.log" 2>&1
60815 pts/10   S+     3:52  |                       \_ 
/usr/lib/postgresql94/bin/pg_dump --host /data/pgsql --port 50432 --username 
postgres --schema-only --quote-all-identifiers --binary-upgrade --
format=custom --file=pg_upgrade_dump_16428.custom zms


60719 pts/10   S+     0:00 /usr/lib/postgresql92/bin/postgres -D 
/var/lib/pgsql/data.intern -p 50432 -b -c listen_addresses= -c 
unix_socket_permissions=0700 -c unix_socket_directory=/data/pgsql
60720 ?        Ss     0:00  \_ postgres: logger process   
60722 ?        Ss     0:00  \_ postgres: checkpointer process   
60723 ?        Ss     0:08  \_ postgres: writer process   
60724 ?        Ss     0:00  \_ postgres: wal writer process   
60725 ?        Ss     0:04  \_ postgres: stats collector process   
60817 ?        Rs   334:12  \_ postgres: postgres zms [local] SELECT

The database is version 9.2, pg_upgrade is version 9.4.1. In a discussion at 
lwn.net I've been told, that 9.4.1 already contains fixes for inefficiencies 
and that it shouldn't be so slow anymore: http://lwn.net/Articles/645600/

What can I do to help improve pg_dump/pg_upgrade for my use case?

Regards,
Stefan


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: pg_upgrade slowness for databases with many tables
@ 2015-05-22 19:34  Jeff Janes <jeff.janes@gmail.com>
  parent: Stefan Seifert <nine@detonation.org>
  2 siblings, 1 reply; 6+ messages in thread

From: Jeff Janes @ 2015-05-22 19:34 UTC (permalink / raw)
  To: Stefan Seifert <nine@detonation.org>; +Cc: pgsql-bugs

On Fri, May 22, 2015 at 9:10 AM, Stefan Seifert <nine@detonation.org> wrote:

> Hi,
>
> upgrading a database containing > 90000 tables and about the same number of
> views and indexes with pg_upgrade takes several hours. I've started the
> upgrade more than five hours ago and the "Creating dump of database
> schemas"
> step is still not finished.
>
>
...


> The database is version 9.2, pg_upgrade is version 9.4.1. In a discussion
> at
> lwn.net I've been told, that 9.4.1 already contains fixes for
> inefficiencies
> and that it shouldn't be so slow anymore: http://lwn.net/Articles/645600/
>
> What can I do to help improve pg_dump/pg_upgrade for my use case?
>

Unfortunately the 9.4 version of pg_dump has to run against the 9.2 server,
where some of the improvements are not applicable.

Your next upgrade should be much less painful.  But unfortunately this one
will be slow.

If it is intolerable, you could try to port
commit eeb6f37d89fc60c6449ca12ef9e into a custom build of 9.2.

This is more a topic for the performance list than for bugs.

Cheers,

Jeff

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: pg_upgrade slowness for databases with many tables
@ 2015-05-22 19:43  Andres Freund <andres@anarazel.de>
  parent: Jeff Janes <jeff.janes@gmail.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Andres Freund @ 2015-05-22 19:43 UTC (permalink / raw)
  To: Jeff Janes <jeff.janes@gmail.com>; +Cc: Stefan Seifert <nine@detonation.org>; pgsql-bugs

On 2015-05-22 12:34:54 -0700, Jeff Janes wrote:
> On Fri, May 22, 2015 at 9:10 AM, Stefan Seifert <nine@detonation.org> wrote:
> > upgrading a database containing > 90000 tables and about the same number of
> > views and indexes with pg_upgrade takes several hours. I've started the
> > upgrade more than five hours ago and the "Creating dump of database
> > schemas"
> > step is still not finished.

> > The database is version 9.2, pg_upgrade is version 9.4.1. In a discussion
> > at
> > lwn.net I've been told, that 9.4.1 already contains fixes for
> > inefficiencies
> > and that it shouldn't be so slow anymore: http://lwn.net/Articles/645600/
> >
> > What can I do to help improve pg_dump/pg_upgrade for my use case?
> >
> 
> Unfortunately the 9.4 version of pg_dump has to run against the 9.2 server,
> where some of the improvements are not applicable.
> 
> Your next upgrade should be much less painful.  But unfortunately this one
> will be slow.
> 
> If it is intolerable, you could try to port
> commit eeb6f37d89fc60c6449ca12ef9e into a custom build of 9.2.
> 
> This is more a topic for the performance list than for bugs.

I actually suggested -bugs... So that's my fault, if any. There've been
a number of problems with the dependency code with a larger number of
objects.

It'd be interesting to see a profile of 9.2 while a pg_dump is running,
to see what the problem is.

Greetings,

Andres Freund


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: pg_upgrade slowness for databases with many tables
@ 2015-05-23 16:59  Stefan Seifert <nine@detonation.org>
  parent: Stefan Seifert <nine@detonation.org>
  2 siblings, 0 replies; 6+ messages in thread

From: Stefan Seifert @ 2015-05-23 16:59 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: pgsql-bugs

On Saturday 23 May 2015 00:08:44 you wrote:
> On 2015-05-22 23:03:34 +0200, Stefan Seifert wrote:
> > On Friday 22 May 2015 21:43:52 you wrote:
> > > It'd be interesting to see a profile of 9.2 while a pg_dump is running,
> > > to see what the problem is.
> > 
> > How can I get you such a profile?
> 
> What are you running this on? i guess linux from the strace output and
> being on lwn? Which distribution & version?

Correct. It's openSUSE 13.2. PostgreSQL packages are from the 
server:database:postgresql repository.

> Depending on either you could do a 'perf record -p $pid_of_slow_backend'
> or the same with -g added. The latter gives a hierarchical profile, but
> requires postgres to be compiled with frame pointers
> (-fno-omit-frame-pointers); or --call-graph dwarf which is slower but
> works on more binaries, but requires a relatively new kernel/perf.

I restarted the upgrade and am following it with strace. I'm taking perf 
measurements for every kind of query pg_dump does (and which is done often 
enough for me to notice the change in pattern in the terminal window).

After a couple of minutes of just locking tables, I noticed to following 
different kinds of queries. Every entry is the current time and an example 
query. I'm attaching perf reports with corresponding file names. The latest is 
the first to be run with -g.

It looks like LockReassignCurrentOwner is taking most of the time. The rest 
goes to hash_seq_search with almost nothing remaining.

What I really wonder though is, why pg_dump does all these queries for single 
objects in the first place? If the target is to create a complete schema dump, 
why not doing a select * from all the relevant pg_* tables and construct the 
big picture in memory? That surely would be much faster?

16:01:
recvfrom(9, "Q\0\0\1\334SELECT tableoid, oid, typname, typnamespace, typacl, 
(SELECT rolname FROM pg_catalog.pg_roles WHERE oid = typowner) AS rolname, 
typinput::oid AS typinput, typoutput::oid AS typoutput, typelem, typrelid, 
CASE WHEN typrelid = 0 THEN ' '::\"char\" ELSE (SELECT relkind FROM pg_class 
WHERE oid = typrelid) END AS typrelkind, typtype, typisdefined, typname[0] = 
'_' AND typelem != 0 AND (SELECT typarray FROM pg_type te WHERE oid = 
pg_type.typelem) = oid AS isarray FROM pg_type\0", 8192, 0, NULL, NULL) = 477
recvfrom(9, "Q\0\0\0004SET search_path = \"2004.atikon.com\", pg_catalog\0", 
8192, 0, NULL, NULL) = 53

16:02:
recvfrom(9, "Q\0\0\3\24SELECT a.attnum, a.attname, a.atttypmod, 
a.attstattarget, a.attstorage, t.typstorage, a.attnotnull, a.atthasdef, 
a.attisdropped, a.attlen, a.attalign, a.attislocal, 
pg_catalog.format_type(t.oid,a.atttypmod) AS atttypname, 
array_to_string(a.attoptions, ', ') AS attoptions, CASE WHEN a.attcollation <> 
t.typcollation THEN a.attcollation ELSE 0 END AS attcollation, 
pg_catalog.array_to_string(ARRAY(SELECT pg_catalog.quote_ident(option_name) || 
' ' || pg_catalog.quote_literal(option_value) FROM 
pg_catalog.pg_options_to_table(attfdwoptions) ORDER BY option_name), E',\n    
') AS attfdwoptions FROM pg_catalog.pg_attribute a LEFT JOIN 
pg_catalog.pg_type t ON a.atttypid = t.oid WHERE a.attrelid = 
'3757242'::pg_catalog.oid AND a.attnum > 0::pg_catalog.int2 ORDER BY 
a.attrelid, a.attnum\0", 8192, 0, NULL, NULL) = 789

16:13:
recvfrom(9, "Q\0\0\3\24SELECT a.attnum, a.attname, a.atttypmod, 
a.attstattarget, a.attstorage, t.typstorage, a.attnotnull, a.atthasdef, 
a.attisdropped, a.attlen, a.attalign, a.attislocal, 
pg_catalog.format_type(t.oid,a.atttypmod) AS atttypname, 
array_to_string(a.attoptions, ', ') AS attoptions, CASE WHEN a.attcollation <> 
t.typcollation THEN a.attcollation ELSE 0 END AS attcollation, 
pg_catalog.array_to_string(ARRAY(SELECT pg_catalog.quote_ident(option_name) || 
' ' || pg_catalog.quote_literal(option_value) FROM 
pg_catalog.pg_options_to_table(attfdwoptions) ORDER BY option_name), E',\n    
') AS attfdwoptions FROM pg_catalog.pg_attribute a LEFT JOIN 
pg_catalog.pg_type t ON a.atttypid = t.oid WHERE a.attrelid = 
'3898404'::pg_catalog.oid AND a.attnum > 0::pg_catalog.int2 ORDER BY 
a.attrelid, a.attnum\0", 8192, 0, NULL, NULL) = 789

17:40:
recvfrom(9, "Q\0\0\3\36SELECT t.tableoid, t.oid, t.relname AS indexname, 
pg_catalog.pg_get_indexdef(i.indexrelid) AS indexdef, t.relnatts AS indnkeys, 
i.indkey, i.indisclustered, false AS indisreplident, t.relpages, c.contype, 
c.conname, c.condeferrable, c.condeferred, c.tableoid AS contableoid, c.oid AS 
conoid, pg_catalog.pg_get_constraintdef(c.oid, false) AS condef, (SELECT 
spcname FROM pg_catalog.pg_tablespace s WHERE s.oid = t.reltablespace) AS 
tablespace, array_to_string(t.reloptions, ', ') AS options FROM 
pg_catalog.pg_index i JOIN pg_catalog.pg_class t ON (t.oid = i.indexrelid) 
LEFT JOIN pg_catalog.pg_constraint c ON (i.indrelid = c.conrelid AND 
i.indexrelid = c.conindid AND c.contype IN ('p','u','x')) WHERE i.indrelid = 
'4300750'::pg_catalog.oid AND i.indisvalid AND i.indisready ORDER BY 
indexname\0", 8192, 0, NULL, NULL) = 799

18:20:
recvfrom(9, "Q\0\0\0ASET search_path = \"2009.steuerberater-hauer.com\", 
pg_catalog\0", 8192, 0, NULL, NULL) = 66
sendto(9, "C\0\0\0\10SET\0Z\0\0\0\5T", 15, 0, NULL, 0) = 15
recvfrom(9, "Q\0\0\0\270SELECT tableoid, oid, conname, confrelid, 
pg_catalog.pg_get_constraintdef(oid) AS condef FROM pg_catalog.pg_constraint 
WHERE conrelid = '3384167'::pg_catalog.oid AND contype = 'f'\0", 8192, 0, 
NULL, NULL) = 185

Will continue to watch for new statements as time permits.

Regards,
Stefan

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

perf-16:02.report (text/plain, 50.0K) download # To display the perf.data header info, please use --header/--header-only options. # # Samples: 50K of event 'cpu-clock' # Event count (approx.): 12633250000 # # Overhead Command Shared Object Symbol # ........ ........ ................. ........................................ # 60.90% postgres postgres [.] LockReassignCurrentOwner 35.85% postgres postgres [.] hash_seq_search 0.16% postgres postgres [.] base_yyparse 0.16% postgres postgres [.] SearchCatCache 0.11% postgres libc-2.19.so [.] __strcmp_sse2 0.08% postgres [kernel.kallsyms] [k] _raw_spin_unlock_irqrestore 0.07% postgres postgres [.] nocachegetattr 0.07% postgres [kernel.kallsyms] [k] run_timer_softirq 0.06% postgres postgres [.] core_yylex 0.04% postgres postgres [.] FunctionCall2Coll 0.04% postgres postgres [.] hash_search_with_hash_value 0.03% postgres libc-2.19.so [.] strlen 0.03% postgres postgres [.] MemoryContextAllocZeroAligned 0.03% postgres postgres [.] ScanKeywordLookup 0.03% postgres postgres [.] SearchCatCacheList 0.03% postgres libc-2.19.so [.] __memcpy_sse2_unaligned 0.03% postgres postgres [.] MemoryContextAlloc 0.03% postgres postgres [.] _bt_compare 0.03% postgres postgres [.] lappend 0.03% postgres postgres [.] hash_uint32 0.02% postgres libc-2.19.so [.] _int_malloc 0.02% postgres [kernel.kallsyms] [k] __do_page_fault 0.02% postgres postgres [.] DirectFunctionCall1Coll 0.02% postgres postgres [.] expression_tree_mutator 0.02% postgres postgres [.] expression_tree_walker 0.02% postgres postgres [.] hash_any 0.02% postgres postgres [.] pg_verify_mbstr_len 0.02% postgres [kernel.kallsyms] [k] skb_copy_datagram_iovec 0.02% postgres postgres [.] PostgresMain 0.02% postgres postgres [.] 0x0000000000335574 0.02% postgres postgres [.] 0x0000000000335823 0.02% postgres postgres [.] 0x00000000003355ec 0.01% postgres [kernel.kallsyms] [k] handle_mm_fault 0.01% postgres postgres [.] _start 0.01% postgres postgres [.] check_stack_depth 0.01% postgres postgres [.] 0x000000000031d7e0 0.01% postgres [kernel.kallsyms] [k] __fget_light 0.01% postgres [kernel.kallsyms] [k] copy_user_generic_string 0.01% postgres [kernel.kallsyms] [k] get_page_from_freelist 0.01% postgres libc-2.19.so [.] __memcmp_sse2 0.01% postgres libc-2.19.so [.] malloc 0.01% postgres postgres [.] MemoryContextAllocZero 0.01% postgres postgres [.] copyObject 0.01% postgres [kernel.kallsyms] [k] __audit_syscall_exit 0.01% postgres [kernel.kallsyms] [k] __radix_tree_lookup 0.01% postgres [kernel.kallsyms] [k] sockfd_lookup_light 0.01% postgres [vdso] [.] __vdso_gettimeofday 0.01% postgres libc-2.19.so [.] __sigsetjmp 0.01% postgres libc-2.19.so [.] __strncpy_sse2 0.01% postgres libc-2.19.so [.] _int_free 0.01% postgres libc-2.19.so [.] memset 0.01% postgres libc-2.19.so [.] vfprintf 0.01% postgres postgres [.] LWLockAcquire 0.01% postgres postgres [.] PortalDrop 0.01% postgres postgres [.] ReleaseCatCache 0.01% postgres postgres [.] SearchSysCache 0.01% postgres postgres [.] _bt_first 0.01% postgres postgres [.] add_paths_to_joinrel 0.01% postgres postgres [.] deconstruct_array 0.01% postgres postgres [.] get_relation_info 0.01% postgres postgres [.] lcons 0.01% postgres postgres [.] pg_encoding_mbcliplen 0.01% postgres postgres [.] scanRTEForColumn 0.01% postgres postgres [.] transformExpr 0.01% postgres postgres [.] 0x0000000000335548 0.01% postgres postgres [.] 0x00000000003355a4 0.01% postgres postgres [.] 0x000000000033572a 0.01% postgres [kernel.kallsyms] [k] change_protection_range 0.01% postgres [kernel.kallsyms] [k] fsnotify 0.01% postgres [kernel.kallsyms] [k] rebalance_domains 0.01% postgres [kernel.kallsyms] [k] unix_stream_recvmsg 0.01% postgres postgres [.] LockAcquireExtended 0.01% postgres postgres [.] downcase_truncate_identifier 0.01% postgres postgres [.] enforce_generic_type_consistency 0.01% postgres postgres [.] get_eclass_for_sort_expr 0.01% postgres postgres [.] get_mergejoin_opfamilies 0.01% postgres postgres [.] initial_cost_nestloop 0.01% postgres postgres [.] pg_client_to_server 0.01% postgres postgres [.] pq_putmessage 0.01% postgres postgres [.] 0x0000000000335542 0.01% postgres postgres [.] 0x00000000003355d3 0.01% postgres postgres [.] 0x00000000003355df 0.01% postgres postgres [.] 0x0000000000335832 0.01% postgres [kernel.kallsyms] [k] __mem_cgroup_count_vm_event 0.01% postgres [kernel.kallsyms] [k] aa_revalidate_sk 0.01% postgres [kernel.kallsyms] [k] clear_page_c 0.01% postgres [kernel.kallsyms] [k] kmem_cache_alloc_node_trace 0.01% postgres [kernel.kallsyms] [k] page_cpupid_xchg_last 0.01% postgres [kernel.kallsyms] [k] sys_lseek 0.01% postgres [kernel.kallsyms] [k] unix_stream_sendmsg 0.01% postgres [kernel.kallsyms] [k] unix_write_space 0.01% postgres libc-2.19.so [.] free 0.01% postgres libm-2.19.so [.] __ieee754_log_sse2 0.01% postgres postgres [.] BlessTupleDesc 0.01% postgres postgres [.] ExecChooseHashTableSize 0.01% postgres postgres [.] ExecClearTuple 0.01% postgres postgres [.] ExecInitExpr 0.01% postgres postgres [.] ExecProcNode 0.01% postgres postgres [.] ExecScan 0.01% postgres postgres [.] ExecStoreTuple 0.01% postgres postgres [.] LWLockRelease 0.01% postgres postgres [.] MemoryContextCreate 0.01% postgres postgres [.] ParseFuncOrColumn 0.01% postgres postgres [.] ResourceOwnerEnlargeCatCacheRefs 0.01% postgres postgres [.] bms_subset_compare 0.01% postgres postgres [.] clause_selectivity 0.01% postgres postgres [.] cost_index 0.01% postgres postgres [.] cost_sort 0.01% postgres postgres [.] get_baserel_parampathinfo 0.01% postgres postgres [.] heap_getsysattr 0.01% postgres postgres [.] index_open 0.01% postgres postgres [.] makeVar 0.01% postgres postgres [.] pg_utf_mblen 0.01% postgres postgres [.] slot_getattr 0.01% postgres postgres [.] 0x00000000000f6721 0.01% postgres postgres [.] 0x000000000011c372 0.01% postgres postgres [.] 0x000000000023550a 0.01% postgres postgres [.] 0x00000000003355ad 0.01% postgres postgres [.] 0x000000000033581f 0.01% postgres postgres [.] 0x000000000033582e 0.00% postgres [kernel.kallsyms] [k] __mark_inode_dirty 0.00% postgres [kernel.kallsyms] [k] _raw_spin_lock 0.00% postgres [kernel.kallsyms] [k] apparmor_file_permission 0.00% postgres [kernel.kallsyms] [k] kfree 0.00% postgres [kernel.kallsyms] [k] kmalloc_slab 0.00% postgres [kernel.kallsyms] [k] kmem_cache_alloc_node 0.00% postgres [kernel.kallsyms] [k] ksize 0.00% postgres [kernel.kallsyms] [k] maybe_add_creds 0.00% postgres [kernel.kallsyms] [k] native_set_pte_at 0.00% postgres [kernel.kallsyms] [k] page_add_file_rmap 0.00% postgres [kernel.kallsyms] [k] path_put 0.00% postgres [kernel.kallsyms] [k] retint_careful 0.00% postgres [kernel.kallsyms] [k] run_rebalance_domains 0.00% postgres [kernel.kallsyms] [k] schedule_timeout 0.00% postgres [kernel.kallsyms] [k] security_socket_sendmsg 0.00% postgres [kernel.kallsyms] [k] sock_alloc_send_pskb 0.00% postgres [kernel.kallsyms] [k] sock_def_readable 0.00% postgres [kernel.kallsyms] [k] system_call_after_swapgs 0.00% postgres [kernel.kallsyms] [k] unix_scm_to_skb 0.00% postgres libc-2.19.so [.] __GI_____strtoll_l_internal 0.00% postgres libc-2.19.so [.] __ctype_b_loc 0.00% postgres libc-2.19.so [.] __snprintf_chk 0.00% postgres libc-2.19.so [.] __strncmp_sse2 0.00% postgres libc-2.19.so [.] __vsnprintf_chk 0.00% postgres libc-2.19.so [.] _wordcopy_fwd_aligned 0.00% postgres libc-2.19.so [.] strrchr 0.00% postgres libm-2.19.so [.] __ceil_c 0.00% postgres postgres [.] ChoosePortalStrategy 0.00% postgres postgres [.] CreateTemplateTupleDesc 0.00% postgres postgres [.] ExecCheckRTPerms 0.00% postgres postgres [.] FileSeek 0.00% postgres postgres [.] FuncnameGetCandidates 0.00% postgres postgres [.] LookupTypeName 0.00% postgres postgres [.] PortalSetResultFormat 0.00% postgres postgres [.] PortalStart 0.00% postgres postgres [.] RelationIncrementReferenceCount 0.00% postgres postgres [.] ReleaseAndReadBuffer 0.00% postgres postgres [.] ReleaseSysCache 0.00% postgres postgres [.] ResourceOwnerForgetCatCacheRef 0.00% postgres postgres [.] SearchSysCacheList 0.00% postgres postgres [.] SplitIdentifierString 0.00% postgres postgres [.] _bt_binsrch 0.00% postgres postgres [.] _bt_freestack 0.00% postgres postgres [.] add_path 0.00% postgres postgres [.] add_vars_to_targetlist 0.00% postgres postgres [.] assign_expr_collations 0.00% postgres postgres [.] base_yylex 0.00% postgres postgres [.] bms_copy 0.00% postgres postgres [.] bms_union 0.00% postgres postgres [.] btcostestimate 0.00% postgres postgres [.] build_function_result_tupdesc_d 0.00% postgres postgres [.] build_join_rel 0.00% postgres postgres [.] coerce_to_common_type 0.00% postgres postgres [.] coerce_to_target_type 0.00% postgres postgres [.] cost_qual_eval 0.00% postgres postgres [.] create_mergejoin_path 0.00% postgres postgres [.] enlargeStringInfo 0.00% postgres postgres [.] equal 0.00% postgres postgres [.] equalTupleDescs 0.00% postgres postgres [.] errstart 0.00% postgres postgres [.] expand_indexqual_conditions 0.00% postgres postgres [.] exprType 0.00% postgres postgres [.] get_func_retset 0.00% postgres postgres [.] hash_search 0.00% postgres postgres [.] hashoid 0.00% postgres postgres [.] list_copy 0.00% postgres postgres [.] makeTargetEntry 0.00% postgres postgres [.] make_var 0.00% postgres postgres [.] markTargetListOrigins 0.00% postgres postgres [.] match_index_to_operand 0.00% postgres postgres [.] oideq 0.00% postgres postgres [.] oper 0.00% postgres postgres [.] pfree 0.00% postgres postgres [.] pg_ltoa 0.00% postgres postgres [.] pg_server_to_client 0.00% postgres postgres [.] pgstat_report_activity 0.00% postgres postgres [.] planner 0.00% postgres postgres [.] pq_sendint 0.00% postgres postgres [.] secure_read 0.00% postgres postgres [.] secure_write 0.00% postgres postgres [.] set_cheapest 0.00% postgres postgres [.] set_config_option 0.00% postgres postgres [.] set_ps_display 0.00% postgres postgres [.] smgrnblocks 0.00% postgres postgres [.] subquery_planner 0.00% postgres postgres [.] transformTargetEntry 0.00% postgres postgres [.] transformTargetList 0.00% postgres postgres [.] tuplesort_end 0.00% postgres postgres [.] tuplesort_performsort 0.00% postgres postgres [.] 0x0000000000088888 0.00% postgres postgres [.] 0x0000000000109441 0.00% postgres postgres [.] 0x00000000001bba21 0.00% postgres postgres [.] 0x00000000001e8352 0.00% postgres postgres [.] 0x00000000001ea8f3 0.00% postgres postgres [.] 0x00000000001f2f3d 0.00% postgres postgres [.] 0x00000000001f5d2b 0.00% postgres postgres [.] 0x0000000000234fbe 0.00% postgres postgres [.] 0x0000000000234fe5 0.00% postgres postgres [.] 0x00000000002354d1 0.00% postgres postgres [.] 0x0000000000244e35 0.00% postgres postgres [.] 0x00000000002c4a02 0.00% postgres postgres [.] 0x00000000003062b4 0.00% postgres postgres [.] 0x000000000032aa0b 0.00% postgres postgres [.] 0x000000000032aa79 0.00% postgres postgres [.] 0x0000000000335397 0.00% postgres postgres [.] 0x0000000000335450 0.00% postgres postgres [.] 0x00000000003354da 0.00% postgres postgres [.] 0x000000000033554d 0.00% postgres postgres [.] 0x0000000000335554 0.00% postgres postgres [.] 0x0000000000335563 0.00% postgres postgres [.] 0x000000000033556c 0.00% postgres postgres [.] 0x000000000033583e 0.00% postgres postgres [.] 0x00000000003373c5 0.00% postgres [kernel.kallsyms] [k] SYSC_recvfrom 0.00% postgres [kernel.kallsyms] [k] SYSC_sendto 0.00% postgres [kernel.kallsyms] [k] __add_to_page_cache_locked 0.00% postgres [kernel.kallsyms] [k] __alloc_pages_nodemask 0.00% postgres [kernel.kallsyms] [k] __alloc_skb 0.00% postgres [kernel.kallsyms] [k] __do_fault 0.00% postgres [kernel.kallsyms] [k] __do_softirq 0.00% postgres [kernel.kallsyms] [k] __fdget_pos 0.00% postgres [kernel.kallsyms] [k] __mem_cgroup_commit_charge 0.00% postgres [kernel.kallsyms] [k] __mnt_want_write_file 0.00% postgres [kernel.kallsyms] [k] __schedule 0.00% postgres [kernel.kallsyms] [k] _raw_spin_trylock 0.00% postgres [kernel.kallsyms] [k] auditsys 0.00% postgres [kernel.kallsyms] [k] copy_page_rep 0.00% postgres [kernel.kallsyms] [k] copy_page_to_iter_iovec 0.00% postgres [kernel.kallsyms] [k] do_set_pte 0.00% postgres [kernel.kallsyms] [k] find_get_entry 0.00% postgres [kernel.kallsyms] [k] generic_file_read_iter 0.00% postgres [kernel.kallsyms] [k] get_vma_policy 0.00% postgres [kernel.kallsyms] [k] kmem_cache_free 0.00% postgres [kernel.kallsyms] [k] mem_cgroup_charge_file 0.00% postgres [kernel.kallsyms] [k] mem_cgroup_try_charge_mm 0.00% postgres [kernel.kallsyms] [k] mutex_lock_interruptible 0.00% postgres [kernel.kallsyms] [k] rmap_walk 0.00% postgres [kernel.kallsyms] [k] security_file_permission 0.00% postgres [kernel.kallsyms] [k] set_page_dirty 0.00% postgres [kernel.kallsyms] [k] shmem_add_to_page_cache.isra.18 0.00% postgres [kernel.kallsyms] [k] shmem_fault 0.00% postgres [kernel.kallsyms] [k] shmem_getpage_gfp 0.00% postgres [kernel.kallsyms] [k] shmem_recalc_inode 0.00% postgres [kernel.kallsyms] [k] skb_copy_datagram_from_iovec 0.00% postgres [kernel.kallsyms] [k] skb_release_all 0.00% postgres [kernel.kallsyms] [k] skb_release_head_state 0.00% postgres [kernel.kallsyms] [k] sys_sendto 0.00% postgres [kernel.kallsyms] [k] tracesys 0.00% postgres [kernel.kallsyms] [k] unroll_tree_refs 0.00% postgres [kernel.kallsyms] [k] up_read 0.00% postgres [kernel.kallsyms] [k] update_time 0.00% postgres [kernel.kallsyms] [k] vfs_read 0.00% postgres [kernel.kallsyms] [k] vm_normal_page 0.00% postgres [kernel.kallsyms] [k] wait_for_unix_gc 0.00% postgres libc-2.19.so [.] _IO_default_xsputn 0.00% postgres libc-2.19.so [.] _IO_no_init 0.00% postgres libc-2.19.so [.] _IO_setb 0.00% postgres libc-2.19.so [.] __GI_____strtoull_l_internal 0.00% postgres libc-2.19.so [.] __memcpy_sse2 0.00% postgres libc-2.19.so [.] __memmove_sse2 0.00% postgres libc-2.19.so [.] __sprintf_chk 0.00% postgres libc-2.19.so [.] __strchr_sse2 0.00% postgres libc-2.19.so [.] __strchrnul 0.00% postgres libc-2.19.so [.] __strcpy_sse2 0.00% postgres libc-2.19.so [.] __strstr_sse2 0.00% postgres libc-2.19.so [.] malloc_consolidate 0.00% postgres postgres [.] BufTableHashCode 0.00% postgres postgres [.] CreateCommandTag 0.00% postgres postgres [.] CreateQueryDesc 0.00% postgres postgres [.] DeconstructQualifiedName 0.00% postgres postgres [.] EnableCatchupInterrupt 0.00% postgres postgres [.] ExecBuildProjectionInfo 0.00% postgres postgres [.] ExecFunctionScan 0.00% postgres postgres [.] ExecIndexBuildScanKeys 0.00% postgres postgres [.] ExecIndexScan 0.00% postgres postgres [.] ExecInitFunctionScan 0.00% postgres postgres [.] ExecInitJunkFilter 0.00% postgres postgres [.] ExecInitSort 0.00% postgres postgres [.] ExecProject 0.00% postgres postgres [.] ExecQual 0.00% postgres postgres [.] ExecResetTupleTable 0.00% postgres postgres [.] ExecSetVariableStmt 0.00% postgres postgres [.] FreeExecutorState 0.00% postgres postgres [.] FunctionCall5Coll 0.00% postgres postgres [.] GetCurrentStatementStartTimestamp 0.00% postgres postgres [.] GetSysCacheOid 0.00% postgres postgres [.] HeapTupleSatisfiesMVCC 0.00% postgres postgres [.] InputFunctionCall 0.00% postgres postgres [.] LockBuffer 0.00% postgres postgres [.] LookupExplicitNamespace 0.00% postgres postgres [.] MemoryContextDeleteChildren 0.00% postgres postgres [.] MemoryContextReset 0.00% postgres postgres [.] OidFunctionCall7Coll 0.00% postgres postgres [.] OidInputFunctionCall 0.00% postgres postgres [.] PortalRun 0.00% postgres postgres [.] PredicateLockTuple 0.00% postgres postgres [.] QueryRewrite 0.00% postgres postgres [.] RTERangeTablePosn 0.00% postgres postgres [.] RelationDecrementReferenceCount 0.00% postgres postgres [.] RelationGetIndexExpressions 0.00% postgres postgres [.] RelationGetIndexPredicate 0.00% postgres postgres [.] ReleaseCatCacheList 0.00% postgres postgres [.] ReleaseResources_hash 0.00% postgres postgres [.] ResourceOwnerEnlargeCatCacheListRefs 0.00% postgres postgres [.] ResourceOwnerEnlargeRelationRefs 0.00% postgres postgres [.] ResourceOwnerEnlargeSnapshots 0.00% postgres postgres [.] ResourceOwnerForgetBuffer 0.00% postgres postgres [.] ResourceOwnerRememberCatCacheListRef 0.00% postgres postgres [.] ResourceOwnerRememberCatCacheRef 0.00% postgres postgres [.] SS_finalize_plan 0.00% postgres postgres [.] SystemAttributeByName 0.00% postgres postgres [.] TransactionStartedDuringRecovery 0.00% postgres postgres [.] TupleDescInitEntry 0.00% postgres postgres [.] UnregisterSnapshotFromOwner 0.00% postgres postgres [.] _bt_checkpage 0.00% postgres postgres [.] _bt_getroot 0.00% postgres postgres [.] _bt_moveright 0.00% postgres postgres [.] _bt_preprocess_array_keys 0.00% postgres postgres [.] _bt_search 0.00% postgres postgres [.] analyze_requires_snapshot 0.00% postgres postgres [.] appendBinaryStringInfo 0.00% postgres postgres [.] assign_query_collations 0.00% postgres postgres [.] bms_add_member 0.00% postgres postgres [.] bms_add_members 0.00% postgres postgres [.] bms_equal 0.00% postgres postgres [.] bms_is_subset 0.00% postgres postgres [.] bms_make_singleton 0.00% postgres postgres [.] bms_nonempty_difference 0.00% postgres postgres [.] bms_overlap 0.00% postgres postgres [.] btoidcmp 0.00% postgres postgres [.] build_function_result_tupdesc_t 0.00% postgres postgres [.] build_index_pathkeys 0.00% postgres postgres [.] canonicalize_ec_expression 0.00% postgres postgres [.] canonicalize_qual 0.00% postgres postgres [.] ceil@plt 0.00% postgres postgres [.] check_generic_type_consistency 0.00% postgres postgres [.] check_log_duration 0.00% postgres postgres [.] colNameToVar 0.00% postgres postgres [.] core_yy_scan_buffer 0.00% postgres postgres [.] core_yy_switch_to_buffer 0.00% postgres postgres [.] create_index_paths 0.00% postgres postgres [.] create_tidscan_paths 0.00% postgres postgres [.] cstring_to_text 0.00% postgres postgres [.] datumCopy 0.00% postgres postgres [.] distribute_restrictinfo_to_rels 0.00% postgres postgres [.] eqjoinsel 0.00% postgres postgres [.] estimate_expression_value 0.00% postgres postgres [.] examine_variable 0.00% postgres postgres [.] expandRTE 0.00% postgres postgres [.] exprTypmod 0.00% postgres postgres [.] expression_returns_set_rows 0.00% postgres postgres [.] extract_actual_clauses 0.00% postgres postgres [.] final_cost_mergejoin 0.00% postgres postgres [.] final_cost_nestloop 0.00% postgres postgres [.] find_join_rel 0.00% postgres postgres [.] find_mergeclauses_for_pathkeys 0.00% postgres postgres [.] free_attstatsslot 0.00% postgres postgres [.] func_get_detail 0.00% postgres postgres [.] func_match_argtypes 0.00% postgres postgres [.] generate_base_implied_equalities 0.00% postgres postgres [.] generate_bitmap_or_paths 0.00% postgres postgres [.] getTypeIOParam 0.00% postgres postgres [.] get_attstatsslot 0.00% postgres postgres [.] get_namespace_oid 0.00% postgres postgres [.] get_opfamily_proc 0.00% postgres postgres [.] get_ordering_op_properties 0.00% postgres postgres [.] get_rel_relkind 0.00% postgres postgres [.] get_relname_relid 0.00% postgres postgres [.] get_rightop 0.00% postgres postgres [.] get_rte_attribute_type 0.00% postgres postgres [.] get_sort_group_operators 0.00% postgres postgres [.] get_sortgroupclause_expr 0.00% postgres postgres [.] get_typavgwidth 0.00% postgres postgres [.] heap_hot_search_buffer 0.00% postgres postgres [.] heap_tuple_untoast_attr 0.00% postgres postgres [.] index_beginscan 0.00% postgres postgres [.] index_can_return 0.00% postgres postgres [.] index_fetch_heap 0.00% postgres postgres [.] index_getnext 0.00% postgres postgres [.] index_getnext_tid 0.00% postgres postgres [.] index_getprocinfo 0.00% postgres postgres [.] index_pages_fetched 0.00% postgres postgres [.] index_rescan 0.00% postgres postgres [.] initial_cost_mergejoin 0.00% postgres postgres [.] inline_set_returning_function 0.00% postgres postgres [.] int4out 0.00% postgres postgres [.] isLockedRefname 0.00% postgres postgres [.] join_search_one_level 0.00% postgres postgres [.] join_selectivity 0.00% postgres postgres [.] list_concat 0.00% postgres postgres [.] makeBoolExpr 0.00% postgres postgres [.] makeRelabelType 0.00% postgres postgres [.] make_fn_arguments 0.00% postgres postgres [.] make_join_rel 0.00% postgres postgres [.] make_op 0.00% postgres postgres [.] mcv_selectivity 0.00% postgres postgres [.] mdnblocks 0.00% postgres postgres [.] memcpy@plt 0.00% postgres postgres [.] mergejoinscansel 0.00% postgres postgres [.] namestrcpy 0.00% postgres postgres [.] oid_hash 0.00% postgres postgres [.] or_clause 0.00% postgres postgres [.] parse_analyze 0.00% postgres postgres [.] parse_sub_analyze 0.00% postgres postgres [.] parserOpenTable 0.00% postgres postgres [.] pathkeys_contained_in 0.00% postgres postgres [.] pg_itoa 0.00% postgres postgres [.] pg_mbcliplen 0.00% postgres postgres [.] pg_server_to_any 0.00% postgres postgres [.] pg_verify_mbstr 0.00% postgres postgres [.] pq_flush 0.00% postgres postgres [.] pq_getmsgstring 0.00% postgres postgres [.] pq_sendcountedtext 0.00% postgres postgres [.] printtup_create_DR 0.00% postgres postgres [.] pull_up_subqueries 0.00% postgres postgres [.] query_planner 0.00% postgres postgres [.] reconsider_outer_join_clauses 0.00% postgres postgres [.] refnameRangeTblEntry 0.00% postgres postgres [.] relation_open 0.00% postgres postgres [.] remove_useless_joins 0.00% postgres postgres [.] resetStringInfo 0.00% postgres postgres [.] restriction_selectivity 0.00% postgres postgres [.] select_common_type 0.00% postgres postgres [.] select_outer_pathkeys_for_merge 0.00% postgres postgres [.] setup_simple_rel_arrays 0.00% postgres postgres [.] standard_ExecutorRun 0.00% postgres postgres [.] strcmp@plt 0.00% postgres postgres [.] strip_implicit_coercions 0.00% postgres postgres [.] strlcpy 0.00% postgres postgres [.] tag_hash 0.00% postgres postgres [.] transformSortClause 0.00% postgres postgres [.] transformStmt 0.00% postgres postgres [.] transformWhereClause 0.00% postgres postgres [.] type_maximum_size 0.00% postgres postgres [.] 0x0000000000069743 0.00% postgres postgres [.] 0x0000000000069764 0.00% postgres postgres [.] 0x0000000000088862 0.00% postgres postgres [.] 0x000000000008f0b9 0.00% postgres postgres [.] 0x000000000008f2c0 0.00% postgres postgres [.] 0x000000000008f6be 0.00% postgres postgres [.] 0x000000000008f716 0.00% postgres postgres [.] 0x00000000000908b5 0.00% postgres postgres [.] 0x0000000000090a16 0.00% postgres postgres [.] 0x00000000000d9b15 0.00% postgres postgres [.] 0x000000000010952f 0.00% postgres postgres [.] 0x000000000010cb82 0.00% postgres postgres [.] 0x000000000010dde9 0.00% postgres postgres [.] 0x000000000010f7b2 0.00% postgres postgres [.] 0x00000000001124d5 0.00% postgres postgres [.] 0x0000000000112840 0.00% postgres postgres [.] 0x000000000011aa03 0.00% postgres postgres [.] 0x000000000011c36e 0.00% postgres postgres [.] 0x000000000011c5bd 0.00% postgres postgres [.] 0x000000000011c5f4 0.00% postgres postgres [.] 0x000000000011cee1 0.00% postgres postgres [.] 0x000000000011fd7a 0.00% postgres postgres [.] 0x0000000000188263 0.00% postgres postgres [.] 0x0000000000188bfb 0.00% postgres postgres [.] 0x0000000000189443 0.00% postgres postgres [.] 0x000000000018946d 0.00% postgres postgres [.] 0x00000000001894f5 0.00% postgres postgres [.] 0x000000000018951e 0.00% postgres postgres [.] 0x0000000000189530 0.00% postgres postgres [.] 0x000000000018b243 0.00% postgres postgres [.] 0x00000000001900e2 0.00% postgres postgres [.] 0x0000000000198f92 0.00% postgres postgres [.] 0x00000000001b65b1 0.00% postgres postgres [.] 0x00000000001b9f93 0.00% postgres postgres [.] 0x00000000001bba40 0.00% postgres postgres [.] 0x00000000001bba82 0.00% postgres postgres [.] 0x00000000001bbac2 0.00% postgres postgres [.] 0x00000000001bbae0 0.00% postgres postgres [.] 0x00000000001bbaf1 0.00% postgres postgres [.] 0x00000000001bbaf8 0.00% postgres postgres [.] 0x00000000001bbb05 0.00% postgres postgres [.] 0x00000000001bbb11 0.00% postgres postgres [.] 0x00000000001be8a1 0.00% postgres postgres [.] 0x00000000001c212a 0.00% postgres postgres [.] 0x00000000001da942 0.00% postgres postgres [.] 0x00000000001db54e 0.00% postgres postgres [.] 0x00000000001db556 0.00% postgres postgres [.] 0x00000000001db583 0.00% postgres postgres [.] 0x00000000001db66f 0.00% postgres postgres [.] 0x00000000001dbc59 0.00% postgres postgres [.] 0x00000000001dbc9d 0.00% postgres postgres [.] 0x00000000001dfd33 0.00% postgres postgres [.] 0x00000000001e202a 0.00% postgres postgres [.] 0x00000000001e3158 0.00% postgres postgres [.] 0x00000000001e33c3 0.00% postgres postgres [.] 0x00000000001e3446 0.00% postgres postgres [.] 0x00000000001e37e8 0.00% postgres postgres [.] 0x00000000001e3d48 0.00% postgres postgres [.] 0x00000000001e5e07 0.00% postgres postgres [.] 0x00000000001e5e28 0.00% postgres postgres [.] 0x00000000001e5f2e 0.00% postgres postgres [.] 0x00000000001e7203 0.00% postgres postgres [.] 0x00000000001e8388 0.00% postgres postgres [.] 0x00000000001e839c 0.00% postgres postgres [.] 0x00000000001ea262 0.00% postgres postgres [.] 0x00000000001ea405 0.00% postgres postgres [.] 0x00000000001ea6e2 0.00% postgres postgres [.] 0x00000000001eaaab 0.00% postgres postgres [.] 0x00000000001eaea6 0.00% postgres postgres [.] 0x00000000001eb80b 0.00% postgres postgres [.] 0x00000000001ed07b 0.00% postgres postgres [.] 0x00000000001ed2d2 0.00% postgres postgres [.] 0x00000000001ed5a0 0.00% postgres postgres [.] 0x00000000001f1d03 0.00% postgres postgres [.] 0x00000000001f22d0 0.00% postgres postgres [.] 0x00000000001f2382 0.00% postgres postgres [.] 0x00000000001f24e2 0.00% postgres postgres [.] 0x00000000001f28e0 0.00% postgres postgres [.] 0x00000000001f28ec 0.00% postgres postgres [.] 0x00000000001f3f44 0.00% postgres postgres [.] 0x00000000001f41a2 0.00% postgres postgres [.] 0x00000000001f432e 0.00% postgres postgres [.] 0x00000000001f59a3 0.00% postgres postgres [.] 0x00000000001f6091 0.00% postgres postgres [.] 0x00000000001f6e4d 0.00% postgres postgres [.] 0x00000000001f728b 0.00% postgres postgres [.] 0x00000000001f7523 0.00% postgres postgres [.] 0x00000000001f755f 0.00% postgres postgres [.] 0x00000000001f79a2 0.00% postgres postgres [.] 0x00000000001f7ff2 0.00% postgres postgres [.] 0x00000000001f809c 0.00% postgres postgres [.] 0x00000000001f80a9 0.00% postgres postgres [.] 0x00000000001f8845 0.00% postgres postgres [.] 0x00000000001fa0f3 0.00% postgres postgres [.] 0x00000000001fa18c 0.00% postgres postgres [.] 0x00000000001fa79c 0.00% postgres postgres [.] 0x00000000001fac8f 0.00% postgres postgres [.] 0x00000000001fad8c 0.00% postgres postgres [.] 0x00000000001fbdd2 0.00% postgres postgres [.] 0x0000000000200a15 0.00% postgres postgres [.] 0x0000000000201cbf 0.00% postgres postgres [.] 0x0000000000202223 0.00% postgres postgres [.] 0x000000000020aba8 0.00% postgres postgres [.] 0x000000000020ad22 0.00% postgres postgres [.] 0x000000000020ad91 0.00% postgres postgres [.] 0x00000000002319e4 0.00% postgres postgres [.] 0x0000000000233c53 0.00% postgres postgres [.] 0x0000000000234e12 0.00% postgres postgres [.] 0x000000000023585a 0.00% postgres postgres [.] 0x0000000000235a5b 0.00% postgres postgres [.] 0x000000000023913a 0.00% postgres postgres [.] 0x00000000002553d4 0.00% postgres postgres [.] 0x0000000000259d40 0.00% postgres postgres [.] 0x000000000025a19d 0.00% postgres postgres [.] 0x000000000025a885 0.00% postgres postgres [.] 0x000000000025a8e9 0.00% postgres postgres [.] 0x000000000025a974 0.00% postgres postgres [.] 0x000000000025a9bd 0.00% postgres postgres [.] 0x000000000025a9d8 0.00% postgres postgres [.] 0x000000000028f3b2 0.00% postgres postgres [.] 0x00000000002c2902 0.00% postgres postgres [.] 0x00000000002c3468 0.00% postgres postgres [.] 0x00000000002c4ca0 0.00% postgres postgres [.] 0x00000000002c6302 0.00% postgres postgres [.] 0x00000000002c6343 0.00% postgres postgres [.] 0x00000000002c6b7d 0.00% postgres postgres [.] 0x00000000002c6be0 0.00% postgres postgres [.] 0x0000000000306235 0.00% postgres postgres [.] 0x000000000030627d 0.00% postgres postgres [.] 0x00000000003062c8 0.00% postgres postgres [.] 0x000000000030630a 0.00% postgres postgres [.] 0x000000000031d762 0.00% postgres postgres [.] 0x000000000031d7bb 0.00% postgres postgres [.] 0x0000000000321eb5 0.00% postgres postgres [.] 0x0000000000322696 0.00% postgres postgres [.] 0x000000000032a96a 0.00% postgres postgres [.] 0x000000000032aa37 0.00% postgres postgres [.] 0x000000000032baf1 0.00% postgres postgres [.] 0x000000000032bec4 0.00% postgres postgres [.] 0x00000000003353e5 0.00% postgres postgres [.] 0x000000000033541b 0.00% postgres postgres [.] 0x000000000033546c 0.00% postgres postgres [.] 0x00000000003354fe 0.00% postgres postgres [.] 0x0000000000335506 0.00% postgres postgres [.] 0x000000000033550e 0.00% postgres postgres [.] 0x0000000000335510 0.00% postgres postgres [.] 0x0000000000335512 0.00% postgres postgres [.] 0x000000000033551a 0.00% postgres postgres [.] 0x0000000000335521 0.00% postgres postgres [.] 0x0000000000335544 0.00% postgres postgres [.] 0x0000000000335569 0.00% postgres postgres [.] 0x0000000000335570 0.00% postgres postgres [.] 0x000000000033557c 0.00% postgres postgres [.] 0x0000000000335584 0.00% postgres postgres [.] 0x000000000033558d 0.00% postgres postgres [.] 0x00000000003355bc 0.00% postgres postgres [.] 0x00000000003355f9 0.00% postgres postgres [.] 0x0000000000335681 0.00% postgres postgres [.] 0x0000000000335731 0.00% postgres postgres [.] 0x0000000000335742 0.00% postgres postgres [.] 0x000000000033583a 0.00% postgres postgres [.] 0x0000000000337122 0.00% postgres postgres [.] 0x0000000000337137 0.00% postgres postgres [.] 0x00000000003371dc 0.00% postgres postgres [.] 0x000000000033b1c6 0.00% postgres postgres [.] 0x000000000033b3b7
perf-16:13.report (text/plain, 63.8K) download # To display the perf.data header info, please use --header/--header-only options. # # Samples: 66K of event 'cpu-clock' # Event count (approx.): 16555000000 # # Overhead Command Shared Object Symbol # ........ ........ ................. ............................................. # 60.35% postgres postgres [.] LockReassignCurrentOwner 36.41% postgres postgres [.] hash_seq_search 0.16% postgres postgres [.] base_yyparse 0.16% postgres postgres [.] SearchCatCache 0.10% postgres libc-2.19.so [.] __strcmp_sse2 0.08% postgres [kernel.kallsyms] [k] _raw_spin_unlock_irqrestore 0.06% postgres postgres [.] core_yylex 0.05% postgres [kernel.kallsyms] [k] run_timer_softirq 0.05% postgres postgres [.] hash_search_with_hash_value 0.05% postgres postgres [.] ScanKeywordLookup 0.04% postgres postgres [.] MemoryContextAlloc 0.04% postgres postgres [.] nocachegetattr 0.04% postgres postgres [.] expression_tree_walker 0.04% postgres libc-2.19.so [.] __memcpy_sse2_unaligned 0.03% postgres libc-2.19.so [.] strlen 0.03% postgres postgres [.] FunctionCall2Coll 0.03% postgres postgres [.] SearchCatCacheList 0.03% postgres libc-2.19.so [.] _int_malloc 0.03% postgres postgres [.] MemoryContextAllocZeroAligned 0.02% postgres libc-2.19.so [.] _int_free 0.02% postgres postgres [.] _start 0.02% postgres postgres [.] expression_tree_mutator 0.02% postgres postgres [.] lappend 0.02% postgres postgres [.] _bt_compare 0.02% postgres postgres [.] check_stack_depth 0.02% postgres postgres [.] deconstruct_array 0.02% postgres [kernel.kallsyms] [k] __do_page_fault 0.02% postgres [kernel.kallsyms] [k] get_page_from_freelist 0.02% postgres postgres [.] SearchSysCache 0.02% postgres postgres [.] hash_uint32 0.02% postgres postgres [.] pg_verify_mbstr_len 0.02% postgres [kernel.kallsyms] [k] copy_user_generic_string 0.02% postgres postgres [.] LWLockAcquire 0.02% postgres postgres [.] PostgresMain 0.02% postgres postgres [.] 0x0000000000335542 0.02% postgres postgres [.] 0x000000000033557c 0.01% postgres [kernel.kallsyms] [k] unix_stream_recvmsg 0.01% postgres postgres [.] transformExpr 0.01% postgres postgres [.] 0x0000000000335554 0.01% postgres postgres [.] 0x0000000000335574 0.01% postgres [kernel.kallsyms] [k] handle_mm_fault 0.01% postgres libc-2.19.so [.] __strncpy_sse2 0.01% postgres postgres [.] DirectFunctionCall1Coll 0.01% postgres postgres [.] add_paths_to_joinrel 0.01% postgres postgres [.] heap_getsysattr 0.01% postgres postgres [.] 0x000000000011c372 0.01% postgres postgres [.] 0x000000000031d7e0 0.01% postgres [kernel.kallsyms] [k] unix_stream_sendmsg 0.01% postgres [vdso] [.] __vdso_gettimeofday 0.01% postgres libc-2.19.so [.] malloc 0.01% postgres postgres [.] ExecProject 0.01% postgres postgres [.] 0x00000000003355df 0.01% postgres postgres [.] 0x000000000033581f 0.01% postgres postgres [.] 0x0000000000335823 0.01% postgres [kernel.kallsyms] [k] __fget_light 0.01% postgres [kernel.kallsyms] [k] ext4_llseek 0.01% postgres libc-2.19.so [.] __memcmp_sse2 0.01% postgres libc-2.19.so [.] vfprintf 0.01% postgres postgres [.] ExecInitExpr 0.01% postgres postgres [.] MemoryContextAllocZero 0.01% postgres postgres [.] TupleDescInitEntry 0.01% postgres postgres [.] copyObject 0.01% postgres postgres [.] get_relation_info 0.01% postgres postgres [.] hash_any 0.01% postgres postgres [.] initial_cost_mergejoin 0.01% postgres postgres [.] list_nth 0.01% postgres postgres [.] pg_client_to_server 0.01% postgres postgres [.] 0x0000000000335548 0.01% postgres postgres [.] 0x00000000003355a4 0.01% postgres postgres [.] 0x00000000003355d3 0.01% postgres [kernel.kallsyms] [k] change_protection_range 0.01% postgres [kernel.kallsyms] [k] kmem_cache_alloc_node 0.01% postgres [kernel.kallsyms] [k] kmem_cache_alloc_node_trace 0.01% postgres [kernel.kallsyms] [k] security_socket_sendmsg 0.01% postgres [kernel.kallsyms] [k] skb_copy_datagram_iovec 0.01% postgres [kernel.kallsyms] [k] sock_alloc_send_pskb 0.01% postgres libc-2.19.so [.] _IO_default_xsputn 0.01% postgres libc-2.19.so [.] __sigsetjmp 0.01% postgres postgres [.] add_path 0.01% postgres postgres [.] lcons 0.01% postgres postgres [.] pfree 0.01% postgres postgres [.] pg_encoding_mbcliplen 0.01% postgres postgres [.] scanRTEForColumn 0.01% postgres postgres [.] 0x0000000000335563 0.01% postgres postgres [.] 0x0000000000335569 0.01% postgres postgres [.] 0x000000000033572a 0.01% postgres [kernel.kallsyms] [k] __alloc_skb 0.01% postgres [kernel.kallsyms] [k] clear_page_c 0.01% postgres [kernel.kallsyms] [k] kfree 0.01% postgres [kernel.kallsyms] [k] sock_def_readable 0.01% postgres [kernel.kallsyms] [k] wait_for_unix_gc 0.01% postgres libc-2.19.so [.] __strchrnul 0.01% postgres libc-2.19.so [.] __strncmp_sse2 0.01% postgres libc-2.19.so [.] memset 0.01% postgres libm-2.19.so [.] __ceil_c 0.01% postgres postgres [.] ExecChooseHashTableSize 0.01% postgres postgres [.] ParseFuncOrColumn 0.01% postgres postgres [.] PortalDrop 0.01% postgres postgres [.] ResourceOwnerForgetCatCacheRef 0.01% postgres postgres [.] _bt_checkpage 0.01% postgres postgres [.] downcase_truncate_identifier 0.01% postgres postgres [.] examine_variable 0.01% postgres postgres [.] get_eclass_for_sort_expr 0.01% postgres postgres [.] get_mergejoin_opfamilies 0.01% postgres postgres [.] strlcpy 0.01% postgres postgres [.] 0x000000000033554d 0.01% postgres postgres [.] 0x00000000003355ad 0.01% postgres postgres [.] 0x00000000003355ec 0.01% postgres postgres [.] 0x00000000003355f9 0.01% postgres postgres [.] 0x0000000000335731 0.01% postgres postgres [.] 0x000000000033582e 0.00% postgres [kernel.kallsyms] [k] __audit_syscall_exit 0.00% postgres [kernel.kallsyms] [k] __mem_cgroup_count_vm_event 0.00% postgres [kernel.kallsyms] [k] _raw_spin_trylock 0.00% postgres [kernel.kallsyms] [k] ksize 0.00% postgres [kernel.kallsyms] [k] rebalance_domains 0.00% postgres [kernel.kallsyms] [k] shmem_getpage_gfp 0.00% postgres [kernel.kallsyms] [k] skb_put 0.00% postgres [kernel.kallsyms] [k] skb_release_data 0.00% postgres [kernel.kallsyms] [k] task_numa_fault 0.00% postgres libc-2.19.so [.] __errno_location 0.00% postgres libc-2.19.so [.] free 0.00% postgres libc-2.19.so [.] malloc_consolidate 0.00% postgres libm-2.19.so [.] __ieee754_log_sse2 0.00% postgres postgres [.] CommitTransactionCommand 0.00% postgres postgres [.] CreateTemplateTupleDesc 0.00% postgres postgres [.] EnableCatchupInterrupt 0.00% postgres postgres [.] ExecIndexBuildScanKeys 0.00% postgres postgres [.] ExecScan 0.00% postgres postgres [.] GetUserId 0.00% postgres postgres [.] LWLockRelease 0.00% postgres postgres [.] PortalRun 0.00% postgres postgres [.] ResourceOwnerRelease 0.00% postgres postgres [.] SysCacheGetAttr 0.00% postgres postgres [.] _bt_binsrch 0.00% postgres postgres [.] _bt_first 0.00% postgres postgres [.] _bt_moveright 0.00% postgres postgres [.] _bt_preprocess_keys 0.00% postgres postgres [.] add_vars_to_targetlist 0.00% postgres postgres [.] bms_copy 0.00% postgres postgres [.] btbeginscan 0.00% postgres postgres [.] can_coerce_type 0.00% postgres postgres [.] cost_index 0.00% postgres postgres [.] enforce_generic_type_consistency 0.00% postgres postgres [.] enlargeStringInfo 0.00% postgres postgres [.] eqjoinsel 0.00% postgres postgres [.] eqsel 0.00% postgres postgres [.] getTypeOutputInfo 0.00% postgres postgres [.] get_attstatsslot 0.00% postgres postgres [.] hashoid 0.00% postgres postgres [.] heap_hot_search_buffer 0.00% postgres postgres [.] index_rescan 0.00% postgres postgres [.] mdnblocks 0.00% postgres postgres [.] raw_parser 0.00% postgres postgres [.] 0x00000000003062c8 0.00% postgres postgres [.] 0x0000000000335577 0.00% postgres [kernel.kallsyms] [k] SYSC_sendto 0.00% postgres [kernel.kallsyms] [k] __audit_syscall_entry 0.00% postgres [kernel.kallsyms] [k] _raw_spin_lock 0.00% postgres [kernel.kallsyms] [k] consume_skb 0.00% postgres [kernel.kallsyms] [k] down_read_trylock 0.00% postgres [kernel.kallsyms] [k] find_get_entry 0.00% postgres [kernel.kallsyms] [k] generic_file_llseek_size 0.00% postgres [kernel.kallsyms] [k] kmalloc_slab 0.00% postgres [kernel.kallsyms] [k] memcpy_fromiovecend 0.00% postgres [kernel.kallsyms] [k] next_zones_zonelist 0.00% postgres [kernel.kallsyms] [k] page_add_file_rmap 0.00% postgres [kernel.kallsyms] [k] page_waitqueue 0.00% postgres [kernel.kallsyms] [k] shm_fault 0.00% postgres [kernel.kallsyms] [k] shmem_fault 0.00% postgres [kernel.kallsyms] [k] skb_copy_datagram_from_iovec 0.00% postgres [kernel.kallsyms] [k] skb_free_head 0.00% postgres [kernel.kallsyms] [k] skb_queue_tail 0.00% postgres [kernel.kallsyms] [k] sock_recvmsg 0.00% postgres [kernel.kallsyms] [k] sockfd_lookup_light 0.00% postgres [kernel.kallsyms] [k] touch_atime 0.00% postgres libc-2.19.so [.] __ctype_b_loc 0.00% postgres libc-2.19.so [.] __libc_send 0.00% postgres libc-2.19.so [.] __strcpy_sse2 0.00% postgres libm-2.19.so [.] __rint_c 0.00% postgres postgres [.] DisableNotifyInterrupt 0.00% postgres postgres [.] EndCommand 0.00% postgres postgres [.] ExecIndexScan 0.00% postgres postgres [.] ExecInitNode 0.00% postgres postgres [.] ExecNestLoop 0.00% postgres postgres [.] ExecProcNode 0.00% postgres postgres [.] ExecReScan 0.00% postgres postgres [.] ExecutorStart 0.00% postgres postgres [.] FunctionCall1Coll 0.00% postgres postgres [.] OutputFunctionCall 0.00% postgres postgres [.] RTERangeTablePosn 0.00% postgres postgres [.] RelationIdGetRelation 0.00% postgres postgres [.] RelationIncrementReferenceCount 0.00% postgres postgres [.] ReleaseCatCache 0.00% postgres postgres [.] ReleaseResources_hash 0.00% postgres postgres [.] ResourceOwnerForgetBuffer 0.00% postgres postgres [.] StrategyGetBuffer 0.00% postgres postgres [.] TransactionStartedDuringRecovery 0.00% postgres postgres [.] UpdateChangedParamSet 0.00% postgres postgres [.] _bt_getroot 0.00% postgres postgres [.] _bt_search 0.00% postgres postgres [.] add_path_precheck 0.00% postgres postgres [.] appendBinaryStringInfo 0.00% postgres postgres [.] base_yylex 0.00% postgres postgres [.] btcostestimate 0.00% postgres postgres [.] core_yy_switch_to_buffer 0.00% postgres postgres [.] cost_qual_eval 0.00% postgres postgres [.] create_index_paths 0.00% postgres postgres [.] equal 0.00% postgres postgres [.] exprLocation 0.00% postgres postgres [.] exprType 0.00% postgres postgres [.] find_coercion_pathway 0.00% postgres postgres [.] getBaseTypeAndTypmod 0.00% postgres postgres [.] get_baserel_parampathinfo 0.00% postgres postgres [.] get_leftop 0.00% postgres postgres [.] get_oprrest 0.00% postgres postgres [.] has_subclass 0.00% postgres postgres [.] is_pseudo_constant_clause_relids 0.00% postgres postgres [.] makeConst 0.00% postgres postgres [.] makeVar 0.00% postgres postgres [.] make_fn_arguments 0.00% postgres postgres [.] make_pathkeys_for_sortclauses 0.00% postgres postgres [.] markVarForSelectPriv 0.00% postgres postgres [.] memcpy@plt 0.00% postgres postgres [.] namestrcpy 0.00% postgres postgres [.] oper 0.00% postgres postgres [.] pg_encoding_max_length 0.00% postgres postgres [.] pg_qsort 0.00% postgres postgres [.] pg_server_to_any 0.00% postgres postgres [.] pg_utf_mblen 0.00% postgres postgres [.] pgstat_report_activity 0.00% postgres postgres [.] pq_getbyte 0.00% postgres postgres [.] pq_getmsgstring 0.00% postgres postgres [.] pq_putmessage 0.00% postgres postgres [.] pq_sendint 0.00% postgres postgres [.] refnameRangeTblEntry 0.00% postgres postgres [.] relation_open 0.00% postgres postgres [.] secure_write 0.00% postgres postgres [.] set_cheapest 0.00% postgres postgres [.] set_plan_references 0.00% postgres postgres [.] set_ps_display 0.00% postgres postgres [.] smgrnblocks 0.00% postgres postgres [.] strcmp@plt 0.00% postgres postgres [.] subquery_planner 0.00% postgres postgres [.] text_to_cstring 0.00% postgres postgres [.] transformSortClause 0.00% postgres postgres [.] transformStmt 0.00% postgres postgres [.] transformTargetList 0.00% postgres postgres [.] 0x000000000008f001 0.00% postgres postgres [.] 0x0000000000109441 0.00% postgres postgres [.] 0x000000000010952f 0.00% postgres postgres [.] 0x0000000000189432 0.00% postgres postgres [.] 0x00000000001bba57 0.00% postgres postgres [.] 0x00000000001bbb0d 0.00% postgres postgres [.] 0x00000000001bbb11 0.00% postgres postgres [.] 0x00000000001e3d05 0.00% postgres postgres [.] 0x00000000001e839c 0.00% postgres postgres [.] 0x00000000001f1c23 0.00% postgres postgres [.] 0x00000000001f7523 0.00% postgres postgres [.] 0x00000000001f9bd2 0.00% postgres postgres [.] 0x00000000001fbdd2 0.00% postgres postgres [.] 0x0000000000234fbe 0.00% postgres postgres [.] 0x0000000000234fd1 0.00% postgres postgres [.] 0x0000000000234fe5 0.00% postgres postgres [.] 0x0000000000235592 0.00% postgres postgres [.] 0x00000000002553d4 0.00% postgres postgres [.] 0x000000000025a9c5 0.00% postgres postgres [.] 0x000000000031d752 0.00% postgres postgres [.] 0x000000000032aa0b 0.00% postgres postgres [.] 0x000000000032bc43 0.00% postgres postgres [.] 0x0000000000335397 0.00% postgres postgres [.] 0x0000000000335452 0.00% postgres postgres [.] 0x0000000000335540 0.00% postgres postgres [.] 0x000000000033556c 0.00% postgres postgres [.] 0x0000000000335842 0.00% postgres [kernel.kallsyms] [k] __alloc_pages_nodemask 0.00% postgres [kernel.kallsyms] [k] __do_fault 0.00% postgres [kernel.kallsyms] [k] __kmalloc_reserve.isra.26 0.00% postgres [kernel.kallsyms] [k] __lru_cache_add 0.00% postgres [kernel.kallsyms] [k] __mark_inode_dirty 0.00% postgres [kernel.kallsyms] [k] __mnt_want_write 0.00% postgres [kernel.kallsyms] [k] __radix_tree_preload 0.00% postgres [kernel.kallsyms] [k] __schedule 0.00% postgres [kernel.kallsyms] [k] _copy_from_user 0.00% postgres [kernel.kallsyms] [k] _raw_spin_lock_irqsave 0.00% postgres [kernel.kallsyms] [k] apparmor_file_permission 0.00% postgres [kernel.kallsyms] [k] apparmor_socket_sendmsg 0.00% postgres [kernel.kallsyms] [k] balance_dirty_pages_ratelimited 0.00% postgres [kernel.kallsyms] [k] cap_socket_getpeersec_dgram 0.00% postgres [kernel.kallsyms] [k] clocksource_watchdog 0.00% postgres [kernel.kallsyms] [k] common_file_perm 0.00% postgres [kernel.kallsyms] [k] copy_page_to_iter_iovec 0.00% postgres [kernel.kallsyms] [k] cpumask_next_and 0.00% postgres [kernel.kallsyms] [k] generic_file_read_iter 0.00% postgres [kernel.kallsyms] [k] get_mem_cgroup_from_mm 0.00% postgres [kernel.kallsyms] [k] get_vma_policy 0.00% postgres [kernel.kallsyms] [k] iov_iter_init 0.00% postgres [kernel.kallsyms] [k] kfree_skbmem 0.00% postgres [kernel.kallsyms] [k] lookup_page_cgroup 0.00% postgres [kernel.kallsyms] [k] mem_cgroup_try_charge 0.00% postgres [kernel.kallsyms] [k] mem_cgroup_try_charge_mm 0.00% postgres [kernel.kallsyms] [k] mem_cgroup_update_page_stat 0.00% postgres [kernel.kallsyms] [k] memcg_check_events 0.00% postgres [kernel.kallsyms] [k] mntput 0.00% postgres [kernel.kallsyms] [k] mutex_unlock 0.00% postgres [kernel.kallsyms] [k] native_set_pte_at 0.00% postgres [kernel.kallsyms] [k] page_cpupid_xchg_last 0.00% postgres [kernel.kallsyms] [k] path_put 0.00% postgres [kernel.kallsyms] [k] policy_zonelist 0.00% postgres [kernel.kallsyms] [k] put_pid 0.00% postgres [kernel.kallsyms] [k] rcu_note_context_switch 0.00% postgres [kernel.kallsyms] [k] schedule_timeout 0.00% postgres [kernel.kallsyms] [k] security_socket_getpeersec_dgram 0.00% postgres [kernel.kallsyms] [k] sock_wfree 0.00% postgres [kernel.kallsyms] [k] sys_lseek 0.00% postgres [kernel.kallsyms] [k] system_call_after_swapgs 0.00% postgres [kernel.kallsyms] [k] tracesys 0.00% postgres [kernel.kallsyms] [k] unlock_page 0.00% postgres [kernel.kallsyms] [k] unroll_tree_refs 0.00% postgres [kernel.kallsyms] [k] update_blocked_averages 0.00% postgres libc-2.19.so [.] _IO_setb 0.00% postgres libc-2.19.so [.] __GI_____strtoll_l_internal 0.00% postgres libc-2.19.so [.] __GI_____strtoull_l_internal 0.00% postgres libc-2.19.so [.] __GI___libc_lseek64 0.00% postgres libc-2.19.so [.] __isnan 0.00% postgres libc-2.19.so [.] __libc_recv 0.00% postgres libc-2.19.so [.] __sigjmp_save 0.00% postgres libc-2.19.so [.] __sprintf_chk 0.00% postgres libc-2.19.so [.] __strchr_sse2 0.00% postgres libc-2.19.so [.] __strdup 0.00% postgres libc-2.19.so [.] __vsnprintf_chk 0.00% postgres libc-2.19.so [.] _itoa_word 0.00% postgres libc-2.19.so [.] _wordcopy_fwd_aligned 0.00% postgres libc-2.19.so [.] strrchr 0.00% postgres postgres [.] ArrayGetNItems 0.00% postgres postgres [.] BlessTupleDesc 0.00% postgres postgres [.] BufferGetBlockNumber 0.00% postgres postgres [.] ChoosePortalStrategy 0.00% postgres postgres [.] CreateCommandTag 0.00% postgres postgres [.] DLMoveToFront 0.00% postgres postgres [.] EnableNotifyInterrupt 0.00% postgres postgres [.] ExecBuildProjectionInfo 0.00% postgres postgres [.] ExecClearTuple 0.00% postgres postgres [.] ExecEndIndexScan 0.00% postgres postgres [.] ExecEndNode 0.00% postgres postgres [.] ExecFilterJunk 0.00% postgres postgres [.] ExecInitFunctionScan 0.00% postgres postgres [.] ExecInitNestLoop 0.00% postgres postgres [.] ExecInitSort 0.00% postgres postgres [.] ExecReScanIndexScan 0.00% postgres postgres [.] ExecReScanSort 0.00% postgres postgres [.] ExecSetVariableStmt 0.00% postgres postgres [.] ExecutorEnd 0.00% postgres postgres [.] Float8GetDatum 0.00% postgres postgres [.] FreeQueryDesc 0.00% postgres postgres [.] FuncnameGetCandidates 0.00% postgres postgres [.] FunctionCall3Coll 0.00% postgres postgres [.] GetCurrentSubTransactionId 0.00% postgres postgres [.] GetCurrentTimestamp 0.00% postgres postgres [.] GetDatabaseEncoding 0.00% postgres postgres [.] GetPortalByName 0.00% postgres postgres [.] GetSysCacheOid 0.00% postgres postgres [.] IsAbortedTransactionBlockState 0.00% postgres postgres [.] IsSharedRelation 0.00% postgres postgres [.] LockAcquireExtended 0.00% postgres postgres [.] LockRelease 0.00% postgres postgres [.] MarkPortalDone 0.00% postgres postgres [.] MemoryContextCreate 0.00% postgres postgres [.] MemoryContextReset 0.00% postgres postgres [.] OidFunctionCall4Coll 0.00% postgres postgres [.] OidFunctionCall7Coll 0.00% postgres postgres [.] OidInputFunctionCall 0.00% postgres postgres [.] PortalCleanup 0.00% postgres postgres [.] PortalDefineQuery 0.00% postgres postgres [.] PrepareSortSupportComparisonShim 0.00% postgres postgres [.] RangeVarGetRelidExtended 0.00% postgres postgres [.] ReceiveSharedInvalidMessages 0.00% postgres postgres [.] RegisterSnapshotOnOwner 0.00% postgres postgres [.] RelationGetIndexExpressions 0.00% postgres postgres [.] ReleaseBuffer 0.00% postgres postgres [.] ReleaseCatCacheList 0.00% postgres postgres [.] ResourceOwnerEnlargeCatCacheRefs 0.00% postgres postgres [.] ResourceOwnerForgetCatCacheListRef 0.00% postgres postgres [.] ResourceOwnerRememberBuffer 0.00% postgres postgres [.] ResourceOwnerRememberCatCacheRef 0.00% postgres postgres [.] SPI_pop_conditional 0.00% postgres postgres [.] SS_finalize_plan 0.00% postgres postgres [.] ScanKeyEntryInitialize 0.00% postgres postgres [.] ScanKeyEntryInitializeWithInfo 0.00% postgres postgres [.] SearchSysCacheList 0.00% postgres postgres [.] SendRowDescriptionMessage 0.00% postgres postgres [.] SplitIdentifierString 0.00% postgres postgres [.] SystemAttributeByName 0.00% postgres postgres [.] TransactionBlockStatusCode 0.00% postgres postgres [.] TupleDescInitEntryCollation 0.00% postgres postgres [.] _bt_checkkeys 0.00% postgres postgres [.] _bt_next 0.00% postgres postgres [.] addRangeTableEntry 0.00% postgres postgres [.] add_base_rels_to_query 0.00% postgres postgres [.] analyze_requires_snapshot 0.00% postgres postgres [.] appendStringInfoVA 0.00% postgres postgres [.] assign_expr_collations 0.00% postgres postgres [.] assign_query_collations 0.00% postgres postgres [.] assign_record_type_typmod 0.00% postgres postgres [.] bms_add_member 0.00% postgres postgres [.] bms_add_members 0.00% postgres postgres [.] bms_del_member 0.00% postgres postgres [.] bms_free 0.00% postgres postgres [.] bms_intersect 0.00% postgres postgres [.] bms_is_empty 0.00% postgres postgres [.] bms_is_member 0.00% postgres postgres [.] bms_make_singleton 0.00% postgres postgres [.] bms_overlap 0.00% postgres postgres [.] bms_singleton_member 0.00% postgres postgres [.] bms_subset_compare 0.00% postgres postgres [.] boolout 0.00% postgres postgres [.] btendscan 0.00% postgres postgres [.] btgettuple 0.00% postgres postgres [.] build_function_result_tupdesc_d 0.00% postgres postgres [.] build_function_result_tupdesc_t 0.00% postgres postgres [.] build_index_pathkeys 0.00% postgres postgres [.] build_physical_tlist 0.00% postgres postgres [.] build_simple_rel 0.00% postgres postgres [.] canonicalize_qual 0.00% postgres postgres [.] clause_selectivity 0.00% postgres postgres [.] clauselist_selectivity 0.00% postgres postgres [.] client_read_ended 0.00% postgres postgres [.] coerce_type 0.00% postgres postgres [.] colNameToVar 0.00% postgres postgres [.] construct_empty_array 0.00% postgres postgres [.] core_yy_scan_buffer 0.00% postgres postgres [.] cost_bitmap_heap_scan 0.00% postgres postgres [.] cost_seqscan 0.00% postgres postgres [.] create_mergejoin_path 0.00% postgres postgres [.] cstring_to_text_with_len 0.00% postgres postgres [.] datumCopy 0.00% postgres postgres [.] distribute_restrictinfo_to_rels 0.00% postgres postgres [.] elog_start 0.00% postgres postgres [.] errstart 0.00% postgres postgres [.] expand_indexqual_conditions 0.00% postgres postgres [.] exprCollation 0.00% postgres postgres [.] exprTypmod 0.00% postgres postgres [.] final_cost_mergejoin 0.00% postgres postgres [.] final_cost_nestloop 0.00% postgres postgres [.] find_join_rel 0.00% postgres postgres [.] find_mergeclauses_for_pathkeys 0.00% postgres postgres [.] find_placeholders_in_jointree 0.00% postgres postgres [.] fix_placeholder_input_needed_levels 0.00% postgres postgres [.] flatCopyTargetEntry 0.00% postgres postgres [.] flatten_join_alias_vars 0.00% postgres postgres [.] fmgr_info_copy 0.00% postgres postgres [.] func_get_detail 0.00% postgres postgres [.] generate_bitmap_or_paths 0.00% postgres postgres [.] generate_join_implied_equalities 0.00% postgres postgres [.] getBaseType 0.00% postgres postgres [.] get_cheapest_fractional_path_for_pathkeys 0.00% postgres postgres [.] get_expr_result_type 0.00% postgres postgres [.] get_func_cost 0.00% postgres postgres [.] get_func_retset 0.00% postgres postgres [.] get_namespace_oid 0.00% postgres postgres [.] get_ordering_op_properties 0.00% postgres postgres [.] get_relname_relid 0.00% postgres postgres [.] get_rte_attribute_type 0.00% postgres postgres [.] get_tablespace_page_costs 0.00% postgres postgres [.] heap_attisnull 0.00% postgres postgres [.] heap_page_prune_opt 0.00% postgres postgres [.] heap_tuple_untoast_attr 0.00% postgres postgres [.] index_beginscan 0.00% postgres postgres [.] index_getnext_tid 0.00% postgres postgres [.] index_getprocinfo 0.00% postgres postgres [.] index_open 0.00% postgres postgres [.] initStringInfo 0.00% postgres postgres [.] initialize_mergeclause_eclasses 0.00% postgres postgres [.] inline_set_returning_function 0.00% postgres postgres [.] int2eq 0.00% postgres postgres [.] int2out 0.00% postgres postgres [.] join_clause_is_movable_to 0.00% postgres postgres [.] join_search_one_level 0.00% postgres postgres [.] lappend_oid 0.00% postgres postgres [.] list_concat 0.00% postgres postgres [.] list_copy 0.00% postgres postgres [.] list_member_oid 0.00% postgres postgres [.] lookup_type_cache 0.00% postgres postgres [.] makeA_Expr 0.00% postgres postgres [.] makeFuncExpr 0.00% postgres postgres [.] make_ands_implicit 0.00% postgres postgres [.] make_const 0.00% postgres postgres [.] make_inner_pathkeys_for_merge 0.00% postgres postgres [.] make_join_rel 0.00% postgres postgres [.] make_one_rel 0.00% postgres postgres [.] make_restrictinfo 0.00% postgres postgres [.] markTargetListOrigins 0.00% postgres postgres [.] mcv_selectivity 0.00% postgres postgres [.] oideq 0.00% postgres postgres [.] op_in_opfamily 0.00% postgres postgres [.] op_input_types 0.00% postgres postgres [.] op_mergejoinable 0.00% postgres postgres [.] optimize_minmax_aggregates 0.00% postgres postgres [.] or_clause 0.00% postgres postgres [.] parse_analyze 0.00% postgres postgres [.] parserOpenTable 0.00% postgres postgres [.] pg_any_to_server 0.00% postgres postgres [.] pg_database_encoding_max_length 0.00% postgres postgres [.] pg_detoast_datum_packed 0.00% postgres postgres [.] pg_namespace_aclmask 0.00% postgres postgres [.] pg_plan_query 0.00% postgres postgres [.] pg_proc_aclmask 0.00% postgres postgres [.] pg_server_to_client 0.00% postgres postgres [.] pg_strtok 0.00% postgres postgres [.] pgstat_end_function_usage 0.00% postgres postgres [.] pgstat_initstats 0.00% postgres postgres [.] planner 0.00% postgres postgres [.] pq_beginmessage 0.00% postgres postgres [.] pq_endmessage 0.00% postgres postgres [.] preprocess_targetlist 0.00% postgres postgres [.] query_planner 0.00% postgres postgres [.] query_tree_mutator 0.00% postgres postgres [.] quote_identifier 0.00% postgres postgres [.] range_table_mutator 0.00% postgres postgres [.] range_table_walker 0.00% postgres postgres [.] reconsider_outer_join_clauses 0.00% postgres postgres [.] remove_useless_joins 0.00% postgres postgres [.] scalargtsel 0.00% postgres postgres [.] scanner_init 0.00% postgres postgres [.] secure_read 0.00% postgres postgres [.] select_outer_pathkeys_for_merge 0.00% postgres postgres [.] set_config_option 0.00% postgres postgres [.] setup_simple_rel_arrays 0.00% postgres postgres [.] slot_getattr 0.00% postgres postgres [.] smgrread 0.00% postgres postgres [.] standard_ExecutorEnd 0.00% postgres postgres [.] standard_ExecutorStart 0.00% postgres postgres [.] strip_implicit_coercions 0.00% postgres postgres [.] superuser_arg 0.00% postgres postgres [.] tag_hash 0.00% postgres postgres [.] transformGroupClause 0.00% postgres postgres [.] transformTargetEntry 0.00% postgres postgres [.] truncate_useless_pathkeys 0.00% postgres postgres [.] tuplestore_end 0.00% postgres postgres [.] update_mergeclause_eclasses 0.00% postgres postgres [.] 0x0000000000065925 0.00% postgres postgres [.] 0x0000000000065b1d 0.00% postgres postgres [.] 0x0000000000065bf8 0.00% postgres postgres [.] 0x0000000000065c05 0.00% postgres postgres [.] 0x0000000000065cfb 0.00% postgres postgres [.] 0x0000000000069671 0.00% postgres postgres [.] 0x00000000000696c2 0.00% postgres postgres [.] 0x0000000000069738 0.00% postgres postgres [.] 0x000000000006974f 0.00% postgres postgres [.] 0x000000000006976d 0.00% postgres postgres [.] 0x0000000000069eee 0.00% postgres postgres [.] 0x0000000000088862 0.00% postgres postgres [.] 0x0000000000088888 0.00% postgres postgres [.] 0x000000000008f228 0.00% postgres postgres [.] 0x000000000008f716 0.00% postgres postgres [.] 0x00000000000908b5 0.00% postgres postgres [.] 0x000000000009090d 0.00% postgres postgres [.] 0x00000000000909c3 0.00% postgres postgres [.] 0x00000000000d9987 0.00% postgres postgres [.] 0x00000000000d999a 0.00% postgres postgres [.] 0x00000000000f6721 0.00% postgres postgres [.] 0x00000000000f6827 0.00% postgres postgres [.] 0x000000000010c7cc 0.00% postgres postgres [.] 0x000000000010c814 0.00% postgres postgres [.] 0x000000000010d961 0.00% postgres postgres [.] 0x000000000010db6c 0.00% postgres postgres [.] 0x000000000010f7b2 0.00% postgres postgres [.] 0x00000000001128fd 0.00% postgres postgres [.] 0x0000000000112904 0.00% postgres postgres [.] 0x0000000000112bf3 0.00% postgres postgres [.] 0x000000000011a9f2 0.00% postgres postgres [.] 0x000000000011c36e 0.00% postgres postgres [.] 0x000000000011c3c8 0.00% postgres postgres [.] 0x000000000011c486 0.00% postgres postgres [.] 0x000000000011c54a 0.00% postgres postgres [.] 0x000000000011c553 0.00% postgres postgres [.] 0x000000000011c5af 0.00% postgres postgres [.] 0x000000000011cee1 0.00% postgres postgres [.] 0x000000000011fcb6 0.00% postgres postgres [.] 0x0000000000188ba2 0.00% postgres postgres [.] 0x0000000000189498 0.00% postgres postgres [.] 0x0000000000199059 0.00% postgres postgres [.] 0x00000000001a1634 0.00% postgres postgres [.] 0x00000000001a16cf 0.00% postgres postgres [.] 0x00000000001a1729 0.00% postgres postgres [.] 0x00000000001a19cc 0.00% postgres postgres [.] 0x00000000001a1f5c 0.00% postgres postgres [.] 0x00000000001b6407 0.00% postgres postgres [.] 0x00000000001b64fd 0.00% postgres postgres [.] 0x00000000001b65b1 0.00% postgres postgres [.] 0x00000000001b6721 0.00% postgres postgres [.] 0x00000000001bba34 0.00% postgres postgres [.] 0x00000000001bba5e 0.00% postgres postgres [.] 0x00000000001bba6c 0.00% postgres postgres [.] 0x00000000001bba86 0.00% postgres postgres [.] 0x00000000001bbaea 0.00% postgres postgres [.] 0x00000000001bbb14 0.00% postgres postgres [.] 0x00000000001be751 0.00% postgres postgres [.] 0x00000000001c45d1 0.00% postgres postgres [.] 0x00000000001d93f2 0.00% postgres postgres [.] 0x00000000001d9402 0.00% postgres postgres [.] 0x00000000001d9512 0.00% postgres postgres [.] 0x00000000001d9f62 0.00% postgres postgres [.] 0x00000000001db638 0.00% postgres postgres [.] 0x00000000001dbd05 0.00% postgres postgres [.] 0x00000000001e2084 0.00% postgres postgres [.] 0x00000000001e22b7 0.00% postgres postgres [.] 0x00000000001e2c6d 0.00% postgres postgres [.] 0x00000000001e2d93 0.00% postgres postgres [.] 0x00000000001e33a3 0.00% postgres postgres [.] 0x00000000001e34c6 0.00% postgres postgres [.] 0x00000000001e3527 0.00% postgres postgres [.] 0x00000000001e3613 0.00% postgres postgres [.] 0x00000000001e3d37 0.00% postgres postgres [.] 0x00000000001e404f 0.00% postgres postgres [.] 0x00000000001e5d02 0.00% postgres postgres [.] 0x00000000001e7122 0.00% postgres postgres [.] 0x00000000001e8382 0.00% postgres postgres [.] 0x00000000001e8443 0.00% postgres postgres [.] 0x00000000001ea262 0.00% postgres postgres [.] 0x00000000001ea894 0.00% postgres postgres [.] 0x00000000001ea8f3 0.00% postgres postgres [.] 0x00000000001ead87 0.00% postgres postgres [.] 0x00000000001eb082 0.00% postgres postgres [.] 0x00000000001eb78e 0.00% postgres postgres [.] 0x00000000001ecd98 0.00% postgres postgres [.] 0x00000000001ece1d 0.00% postgres postgres [.] 0x00000000001ed07b 0.00% postgres postgres [.] 0x00000000001ed75b 0.00% postgres postgres [.] 0x00000000001ed768 0.00% postgres postgres [.] 0x00000000001ed770 0.00% postgres postgres [.] 0x00000000001ee04d 0.00% postgres postgres [.] 0x00000000001eed4a 0.00% postgres postgres [.] 0x00000000001ef7cb 0.00% postgres postgres [.] 0x00000000001efff5 0.00% postgres postgres [.] 0x00000000001f00d8 0.00% postgres postgres [.] 0x00000000001f04c8 0.00% postgres postgres [.] 0x00000000001f0623 0.00% postgres postgres [.] 0x00000000001f0a21 0.00% postgres postgres [.] 0x00000000001f1cfe 0.00% postgres postgres [.] 0x00000000001f261c 0.00% postgres postgres [.] 0x00000000001f40cc 0.00% postgres postgres [.] 0x00000000001f583c 0.00% postgres postgres [.] 0x00000000001f596d 0.00% postgres postgres [.] 0x00000000001f6271 0.00% postgres postgres [.] 0x00000000001f6680 0.00% postgres postgres [.] 0x00000000001f6d12 0.00% postgres postgres [.] 0x00000000001f6e4d 0.00% postgres postgres [.] 0x00000000001f73d0 0.00% postgres postgres [.] 0x00000000001f74a9 0.00% postgres postgres [.] 0x00000000001f7743 0.00% postgres postgres [.] 0x00000000001f8198 0.00% postgres postgres [.] 0x00000000001f8442 0.00% postgres postgres [.] 0x00000000001f8854 0.00% postgres postgres [.] 0x00000000001f885c 0.00% postgres postgres [.] 0x00000000001f8bcd 0.00% postgres postgres [.] 0x00000000001f9c01 0.00% postgres postgres [.] 0x00000000001f9ed2 0.00% postgres postgres [.] 0x00000000001f9f41 0.00% postgres postgres [.] 0x00000000001f9fef 0.00% postgres postgres [.] 0x00000000001fa004 0.00% postgres postgres [.] 0x00000000001fa79c 0.00% postgres postgres [.] 0x00000000001fa803 0.00% postgres postgres [.] 0x00000000001faf55 0.00% postgres postgres [.] 0x00000000001fee81 0.00% postgres postgres [.] 0x00000000001fee88 0.00% postgres postgres [.] 0x00000000001feec8 0.00% postgres postgres [.] 0x00000000001fef44 0.00% postgres postgres [.] 0x00000000001ff9e2 0.00% postgres postgres [.] 0x00000000001ffdb3 0.00% postgres postgres [.] 0x00000000002007ff 0.00% postgres postgres [.] 0x00000000002008f6 0.00% postgres postgres [.] 0x0000000000200a62 0.00% postgres postgres [.] 0x0000000000200b9e 0.00% postgres postgres [.] 0x00000000002019e1 0.00% postgres postgres [.] 0x0000000000201c7d 0.00% postgres postgres [.] 0x0000000000201ca8 0.00% postgres postgres [.] 0x0000000000201cac 0.00% postgres postgres [.] 0x0000000000201d8e 0.00% postgres postgres [.] 0x0000000000202283 0.00% postgres postgres [.] 0x000000000020a951 0.00% postgres postgres [.] 0x000000000020a972 0.00% postgres postgres [.] 0x000000000020aa0a 0.00% postgres postgres [.] 0x000000000020aa37 0.00% postgres postgres [.] 0x000000000020aa39 0.00% postgres postgres [.] 0x000000000020ac18 0.00% postgres postgres [.] 0x000000000020ad22 0.00% postgres postgres [.] 0x000000000020ad3c 0.00% postgres postgres [.] 0x000000000020ad51 0.00% postgres postgres [.] 0x000000000020ad7b 0.00% postgres postgres [.] 0x000000000020ad8c 0.00% postgres postgres [.] 0x000000000020b060 0.00% postgres postgres [.] 0x000000000020b083 0.00% postgres postgres [.] 0x0000000000233d11 0.00% postgres postgres [.] 0x000000000023550a 0.00% postgres postgres [.] 0x000000000023555b 0.00% postgres postgres [.] 0x00000000002355aa 0.00% postgres postgres [.] 0x0000000000235a5b 0.00% postgres postgres [.] 0x0000000000244e23 0.00% postgres postgres [.] 0x0000000000256c95 0.00% postgres postgres [.] 0x000000000025a9d8 0.00% postgres postgres [.] 0x000000000028f601 0.00% postgres postgres [.] 0x000000000028f7ab 0.00% postgres postgres [.] 0x00000000002aa04d 0.00% postgres postgres [.] 0x00000000002c278b 0.00% postgres postgres [.] 0x00000000002c2b5a 0.00% postgres postgres [.] 0x00000000002c34e2 0.00% postgres postgres [.] 0x00000000002c4a4f 0.00% postgres postgres [.] 0x00000000002c4ae1 0.00% postgres postgres [.] 0x00000000002c4be6 0.00% postgres postgres [.] 0x00000000002c6316 0.00% postgres postgres [.] 0x00000000002c6a4f 0.00% postgres postgres [.] 0x00000000002c6b25 0.00% postgres postgres [.] 0x00000000002c6b42 0.00% postgres postgres [.] 0x00000000002d73d2 0.00% postgres postgres [.] 0x00000000002d73f5 0.00% postgres postgres [.] 0x0000000000306220 0.00% postgres postgres [.] 0x0000000000306222 0.00% postgres postgres [.] 0x00000000003062bb 0.00% postgres postgres [.] 0x000000000031d76f 0.00% postgres postgres [.] 0x000000000031d7a7 0.00% postgres postgres [.] 0x000000000031d7bb 0.00% postgres postgres [.] 0x000000000031d7cf 0.00% postgres postgres [.] 0x0000000000321b92 0.00% postgres postgres [.] 0x0000000000322696 0.00% postgres postgres [.] 0x00000000003226ac 0.00% postgres postgres [.] 0x000000000032a934 0.00% postgres postgres [.] 0x000000000032aa73 0.00% postgres postgres [.] 0x000000000032aa79 0.00% postgres postgres [.] 0x000000000032ac71 0.00% postgres postgres [.] 0x000000000032bc32 0.00% postgres postgres [.] 0x0000000000335347 0.00% postgres postgres [.] 0x000000000033536c 0.00% postgres postgres [.] 0x000000000033538a 0.00% postgres postgres [.] 0x000000000033541b 0.00% postgres postgres [.] 0x0000000000335450 0.00% postgres postgres [.] 0x00000000003354e4 0.00% postgres postgres [.] 0x00000000003354ea 0.00% postgres postgres [.] 0x0000000000335570 0.00% postgres postgres [.] 0x000000000033558c 0.00% postgres postgres [.] 0x0000000000335590 0.00% postgres postgres [.] 0x0000000000335594 0.00% postgres postgres [.] 0x0000000000335836 0.00% postgres postgres [.] 0x00000000003358f1 0.00% postgres postgres [.] 0x0000000000337286 0.00% postgres postgres [.] 0x000000000033730e 0.00% postgres postgres [.] 0x0000000000337367
perf-17:40.report (text/plain, 118.7K) download perf-18:20.report (text/plain, 376.1K) download ^ permalink raw reply [nested|flat] 6+ messages in thread

* Re: pg_upgrade slowness for databases with many tables
@ 2015-05-23 17:02  Stefan Seifert <nine@detonation.org>
  parent: Stefan Seifert <nine@detonation.org>
  2 siblings, 1 reply; 6+ messages in thread

From: Stefan Seifert @ 2015-05-23 17:02 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: pgsql-bugs

On Saturday 23 May 2015 00:08:44 you wrote:
> On 2015-05-22 23:03:34 +0200, Stefan Seifert wrote:
> > On Friday 22 May 2015 21:43:52 you wrote:
> > > It'd be interesting to see a profile of 9.2 while a pg_dump is running,
> > > to see what the problem is.
> > 
> > How can I get you such a profile?
> 
> What are you running this on? i guess linux from the strace output and
> being on lwn? Which distribution & version?

Correct. It's openSUSE 13.2. PostgreSQL packages are from the 
server:database:postgresql repository.

> Depending on either you could do a 'perf record -p $pid_of_slow_backend'
> or the same with -g added. The latter gives a hierarchical profile, but
> requires postgres to be compiled with frame pointers
> (-fno-omit-frame-pointers); or --call-graph dwarf which is slower but
> works on more binaries, but requires a relatively new kernel/perf.

I restarted the upgrade and am following it with strace. I'm taking perf 
measurements for every kind of query pg_dump does (and which is done often 
enough for me to notice the change in pattern in the terminal window).

After a couple of minutes of just locking tables, I noticed to following 
different kinds of queries. Every entry is the current time and an example 
query. I'm attaching perf reports with corresponding file names. The latest is 
the first to be run with -g.

It looks like LockReassignCurrentOwner is taking most of the time. The rest 
goes to hash_seq_search with almost nothing remaining.

What I really wonder though is, why pg_dump does all these queries for single 
objects in the first place? If the target is to create a complete schema dump, 
why not doing a select * from all the relevant pg_* tables and construct the 
big picture in memory? That surely would be much faster?

16:01:
recvfrom(9, "Q\0\0\1\334SELECT tableoid, oid, typname, typnamespace, typacl, 
(SELECT rolname FROM pg_catalog.pg_roles WHERE oid = typowner) AS rolname, 
typinput::oid AS typinput, typoutput::oid AS typoutput, typelem, typrelid, 
CASE WHEN typrelid = 0 THEN ' '::\"char\" ELSE (SELECT relkind FROM pg_class 
WHERE oid = typrelid) END AS typrelkind, typtype, typisdefined, typname[0] = 
'_' AND typelem != 0 AND (SELECT typarray FROM pg_type te WHERE oid = 
pg_type.typelem) = oid AS isarray FROM pg_type\0", 8192, 0, NULL, NULL) = 477
recvfrom(9, "Q\0\0\0004SET search_path = \"2004.atikon.com\", pg_catalog\0", 
8192, 0, NULL, NULL) = 53

16:02:
recvfrom(9, "Q\0\0\3\24SELECT a.attnum, a.attname, a.atttypmod, 
a.attstattarget, a.attstorage, t.typstorage, a.attnotnull, a.atthasdef, 
a.attisdropped, a.attlen, a.attalign, a.attislocal, 
pg_catalog.format_type(t.oid,a.atttypmod) AS atttypname, 
array_to_string(a.attoptions, ', ') AS attoptions, CASE WHEN a.attcollation <> 
t.typcollation THEN a.attcollation ELSE 0 END AS attcollation, 
pg_catalog.array_to_string(ARRAY(SELECT pg_catalog.quote_ident(option_name) || 
' ' || pg_catalog.quote_literal(option_value) FROM 
pg_catalog.pg_options_to_table(attfdwoptions) ORDER BY option_name), E',\n    
') AS attfdwoptions FROM pg_catalog.pg_attribute a LEFT JOIN 
pg_catalog.pg_type t ON a.atttypid = t.oid WHERE a.attrelid = 
'3757242'::pg_catalog.oid AND a.attnum > 0::pg_catalog.int2 ORDER BY 
a.attrelid, a.attnum\0", 8192, 0, NULL, NULL) = 789

16:13:
recvfrom(9, "Q\0\0\3\24SELECT a.attnum, a.attname, a.atttypmod, 
a.attstattarget, a.attstorage, t.typstorage, a.attnotnull, a.atthasdef, 
a.attisdropped, a.attlen, a.attalign, a.attislocal, 
pg_catalog.format_type(t.oid,a.atttypmod) AS atttypname, 
array_to_string(a.attoptions, ', ') AS attoptions, CASE WHEN a.attcollation <> 
t.typcollation THEN a.attcollation ELSE 0 END AS attcollation, 
pg_catalog.array_to_string(ARRAY(SELECT pg_catalog.quote_ident(option_name) || 
' ' || pg_catalog.quote_literal(option_value) FROM 
pg_catalog.pg_options_to_table(attfdwoptions) ORDER BY option_name), E',\n    
') AS attfdwoptions FROM pg_catalog.pg_attribute a LEFT JOIN 
pg_catalog.pg_type t ON a.atttypid = t.oid WHERE a.attrelid = 
'3898404'::pg_catalog.oid AND a.attnum > 0::pg_catalog.int2 ORDER BY 
a.attrelid, a.attnum\0", 8192, 0, NULL, NULL) = 789

17:40:
recvfrom(9, "Q\0\0\3\36SELECT t.tableoid, t.oid, t.relname AS indexname, 
pg_catalog.pg_get_indexdef(i.indexrelid) AS indexdef, t.relnatts AS indnkeys, 
i.indkey, i.indisclustered, false AS indisreplident, t.relpages, c.contype, 
c.conname, c.condeferrable, c.condeferred, c.tableoid AS contableoid, c.oid AS 
conoid, pg_catalog.pg_get_constraintdef(c.oid, false) AS condef, (SELECT 
spcname FROM pg_catalog.pg_tablespace s WHERE s.oid = t.reltablespace) AS 
tablespace, array_to_string(t.reloptions, ', ') AS options FROM 
pg_catalog.pg_index i JOIN pg_catalog.pg_class t ON (t.oid = i.indexrelid) 
LEFT JOIN pg_catalog.pg_constraint c ON (i.indrelid = c.conrelid AND 
i.indexrelid = c.conindid AND c.contype IN ('p','u','x')) WHERE i.indrelid = 
'4300750'::pg_catalog.oid AND i.indisvalid AND i.indisready ORDER BY 
indexname\0", 8192, 0, NULL, NULL) = 799

18:20:
recvfrom(9, "Q\0\0\0ASET search_path = \"2009.steuerberater-hauer.com\", 
pg_catalog\0", 8192, 0, NULL, NULL) = 66
sendto(9, "C\0\0\0\10SET\0Z\0\0\0\5T", 15, 0, NULL, 0) = 15
recvfrom(9, "Q\0\0\0\270SELECT tableoid, oid, conname, confrelid, 
pg_catalog.pg_get_constraintdef(oid) AS condef FROM pg_catalog.pg_constraint 
WHERE conrelid = '3384167'::pg_catalog.oid AND contype = 'f'\0", 8192, 0, 
NULL, NULL) = 185

Will continue to watch for new statements as time permits.

Regards,
Stefan

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

  perf-16:02.report.gz (application/gzip, 5.8K) download

  perf-16:13.report.gz (application/gzip, 6.8K) download

  perf-17:40.report.gz (application/gzip, 11.7K) download

  perf-18:20.report.gz (application/gzip, 34.4K) download

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: pg_upgrade slowness for databases with many tables
@ 2015-05-24 15:02  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Stefan Seifert <nine@detonation.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-05-24 15:02 UTC (permalink / raw)
  To: Stefan Seifert <nine@detonation.org>; +Cc: Andres Freund <andres@anarazel.de>; pgsql-bugs

Stefan Seifert <nine@detonation.org> writes:
> It looks like LockReassignCurrentOwner is taking most of the time.

Yeah, so that is the issue that was alleviated by the patch you were
pointed to.

> What I really wonder though is, why pg_dump does all these queries for single 
> objects in the first place? If the target is to create a complete schema dump, 
> why not doing a select * from all the relevant pg_* tables and construct the 
> big picture in memory? That surely would be much faster?

It's unclear that it would be faster, and it is clear that restructuring
pg_dump like that would be a lotta work.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2015-05-24 15:02 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-05-22 16:10 pg_upgrade slowness for databases with many tables Stefan Seifert <nine@detonation.org>
2015-05-22 19:34 ` Jeff Janes <jeff.janes@gmail.com>
2015-05-22 19:43   ` Andres Freund <andres@anarazel.de>
2015-05-23 16:59 ` Stefan Seifert <nine@detonation.org>
2015-05-23 17:02 ` Stefan Seifert <nine@detonation.org>
2015-05-24 15:02   ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox