pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
rehashing catalog cache id 14 for pg_opclass; 17 tups, 8 buckets
4+ messages / 4 participants
[nested] [flat]

* rehashing catalog cache id 14 for pg_opclass; 17 tups, 8 buckets
@ 2018-04-17 20:14  Thiemo Kellner <thiemo@gelassene-pferde.biz>
  0 siblings, 1 reply; 4+ messages in thread

From: Thiemo Kellner @ 2018-04-17 20:14 UTC (permalink / raw)
  To: PostgreSQL General <pgsql-general@lists.postgresql.org>

Hi all

When running following query in psql (server and client version 10 with 
replication on Debian 9), I get the message mentioned in the subject. I 
have not found much searching the internet. There were suggestions on 
bloat so I ran "vacuum (verbose, full, analyze)" but the message remains.

with PRO_UNNESTED_TYPES as(
   select
     oid as PROOID,
     PRONAME,
     unnest(PROARGTYPES) as PROARGTYPE,
     PRONAMESPACE,
     PROOWNER
   from
     PG_CATALOG.PG_PROC
) select
   P.PRONAME,
   string_agg(
     T.TYPNAME,
     ', '
   ) as PARAMETER_LIST_STRING,
   G.GRANTEE
from
   PRO_UNNESTED_TYPES P
inner join PG_CATALOG.PG_TYPE T on
   P.PROARGTYPE = T.OID
inner join PG_CATALOG.PG_NAMESPACE N on
   P.PRONAMESPACE = N.OID
inner join INFORMATION_SCHEMA.ROUTINE_PRIVILEGES G on
   -- copied from INFORMATION_SCHEMA.ROUTINE_PRIVILEGES source
  -- as seen in DBeaver 4.3.2
(
     (
       P.PRONAME::text || '_'::text
     )|| P.PROOID::text
   )::INFORMATION_SCHEMA.SQL_IDENTIFIER = G.SPECIFIC_NAME
where
   N.NSPNAME = current_user
   and G.GRANTEE != current_user
group by
   P.PROOID,
   P.PRONAME,
   G.GRANTEE
order by
   P.PRONAME asc,
   G.GRANTEE asc,
   PARAMETER_LIST_STRING asc;

I use this installation to develop and for the time being I install and 
re-install a couple of functions only 3 tables an a single view. I 
install in a proper schema which gets re-created at the beginning of my 
install script.

I ran also following statement I found on the net to get an idea on 
bloat in my database.

pg_depend_reference_index	944 kB
pg_proc	904 kB
pg_depend_depender_index	880 kB
pg_largeobject_metadata_oid_index	8192 bytes
pg_enum_typid_sortorder_index	8192 bytes
pg_enum_typid_label_index	8192 bytes
pg_largeobject_loid_pn_index	8192 bytes
pg_enum_oid_index	8192 bytes
pg_statistic_ext_oid_index	8192 bytes
pg_statistic_ext_name_index	8192 bytes

I am quite ok with pg_proc, however I do not know why the depend tables 
are so big and whether this is normal. The rest is fine by me too.

select
   relname,
   pg_size_pretty(
     pg_relation_size(C.oid)
   )
from
   pg_class C
left join pg_namespace N on
   (
     N.oid = C.relnamespace
   )
where
   nspname = 'pg_catalog'
order by
   2 desc limit 10;

I do not feel that my DB has a problem but I was taken aback a bit when 
I first saw the message in the subject.

I would be grateful about a bit shed light.

Kind regards Thiemo

-- 
Öffentlicher PGP-Schlüssel:
http://pgp.mit.edu/pks/lookup?op=get&search=0xCA167FB0E717AFFC

Attachments:

thiemo.vcf (text/x-vcard, 691B) download begin:vcard fn:Thiemo Kellner n:Kellner;Thiemo adr:;;Landstr. 34;Weilheim-Bannholz;BW;79809;Deutschland email;internet:thiemo@gelassene-pferde.biz tel;work:+49 1578 772 37 37 tel;cell:+41 78 947 36 21 note;quoted-printable:Auf Gelassene Pferde kann man bauen!=0D=0A= +49 (0)1578-772 37 37 (Mo, Di)=0D=0A= +41 (0)78 947 36 21 (Mi - Fr)=0D=0A= sip: thiemo.kellner@iptel.org=0D=0A= Skype: thiemo.kellner=0D=0A= http://www.gelassene-pferde.biz=0D=0A= Mitglied bei http://www.keep-it-natural.org=0D=0A= =C3=96ffentlicher PGP-Schl=C3=BCssel: http://pgp.mit.edu/pks/lookup?op=3D= get&search=3D0x8F70EFD2D972CBEF x-mozilla-html:FALSE url:http://www.gelassene-pferde.biz version:2.1 end:vcard
^ permalink raw reply [nested|flat] 4+ messages in thread

* Re: rehashing catalog cache id 14 for pg_opclass; 17 tups, 8 buckets
@ 2018-04-17 20:55  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: Thiemo Kellner <thiemo@gelassene-pferde.biz>
  0 siblings, 1 reply; 4+ messages in thread

From: Adrian Klaver @ 2018-04-17 20:55 UTC (permalink / raw)
  To: Thiemo Kellner <thiemo@gelassene-pferde.biz>; PostgreSQL General <pgsql-general@lists.postgresql.org>

On 04/17/2018 01:14 PM, Thiemo Kellner wrote:
> Hi all
> 
> When running following query in psql (server and client version 10 with 
> replication on Debian 9), I get the message mentioned in the subject. I 
> have not found much searching the internet. There were suggestions on 
> bloat so I ran "vacuum (verbose, full, analyze)" but the message remains.
> 

> 
> I do not feel that my DB has a problem but I was taken aback a bit when 
> I first saw the message in the subject.
> 
> I would be grateful about a bit shed light.

What do you have your log levels set to?

The only place I can find this message is in:

src/backend/utils/cache/catcache.c

elog(DEBUG1, "rehashing catalog cache id %d for %s; %d tups, %d buckets",
                  cp->id, cp->cc_relname, cp->cc_ntup, cp->cc_nbuckets);

If I am following correctly it is fairly low level message.

> 
> Kind regards Thiemo
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




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

* Re: rehashing catalog cache id 14 for pg_opclass; 17 tups, 8 buckets
@ 2018-04-18 06:26  Thiemo Kellner, NHC Barhufpflege <thiemo.kellner@gelassene-pferde.biz>
  parent: Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Thiemo Kellner, NHC Barhufpflege @ 2018-04-18 06:26 UTC (permalink / raw)
  To: PostgreSQL General <pgsql-general@lists.postgresql.org>

Zitat von Adrian Klaver <adrian.klaver@aklaver.com>:

> What do you have your log levels set to?

Thanks for pointing this out. I put client level to debug1. So, I am  
just lucky not to have got flooded with Messages?


-- 
Öffentlicher PGP-Schlüssel:  
http://pgp.mit.edu/pks/lookup?op=get&search=0x8F70EFD2D972CBEF

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




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

* Re: rehashing catalog cache id 14 for pg_opclass; 17 tups, 8 buckets
@ 2018-04-18 06:41  Laurenz Albe <laurenz.albe@cybertec.at>
  parent: Thiemo Kellner, NHC Barhufpflege <thiemo.kellner@gelassene-pferde.biz>
  0 siblings, 0 replies; 4+ messages in thread

From: Laurenz Albe @ 2018-04-18 06:41 UTC (permalink / raw)
  To: Thiemo Kellner, NHC Barhufpflege <thiemo.kellner@gelassene-pferde.biz>; PostgreSQL General <pgsql-general@lists.postgresql.org>

Thiemo Kellner, NHC Barhufpflege wrote:
> > What do you have your log levels set to?
> 
> Thanks for pointing this out. I put client level to debug1. So, I am  
> just lucky not to have got flooded with Messages?

Sort of. This is a normal operation and should not worry you.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




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


end of thread, other threads:[~2018-04-18 06:41 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-04-17 20:14 rehashing catalog cache id 14 for pg_opclass; 17 tups, 8 buckets Thiemo Kellner <thiemo@gelassene-pferde.biz>
2018-04-17 20:55 ` Adrian Klaver <adrian.klaver@aklaver.com>
2018-04-18 06:26   ` Thiemo Kellner, NHC Barhufpflege <thiemo.kellner@gelassene-pferde.biz>
2018-04-18 06:41     ` Laurenz Albe <laurenz.albe@cybertec.at>

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