pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ribal <na97oribal@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: pg_tables anomalies
Date: Fri, 10 Apr 2020 01:21:32 -0700 (MST)
Message-ID: <1586506892180-0.post@n3.nabble.com> (raw)

My environment is Centos 6, Postgre 10.11.

pgadmin deleted a table called m_rt_temp.

However, it is marked as still present in the catalog tree.


So I checked pg_tables.

select * from pg_catalog.pg_tables

This Table is marked as present.


However, if you execute select, alter, drop, insert, update, it is said that
it does not exist.

But when I create table m_rt_temp

It says that it already exists and fails.


Another unusual situation

select * from pg_catalog.pg_tables where tablename = 'm_rt_temp'
select * from pg_catalog.pg_tables where tablename like 'm_%'

There is no result in this query,

select * from pg_catalog.pg_tables where tablename like '% m_rt_temp%'
select * from pg_catalog.pg_tables where tablename like '% m_rt_temp'
select * from pg_catalog.pg_tables where tablename like '_m_rt_temp'

This query gives the result.


I thought 'm' might have a problem

SELECT *, ASCII (SUBSTR (tablename, 1,1))
FROM pg_catalog.pg_tables
where schemaname = 'public' and tablename like ('% m_rt_temp%')

Confirmation result with query

The first letter is 109 (0x6d), so 'm' is correct.

What should I do in this case?

Help



--
Sent from: https://www.postgresql-archive.org/PostgreSQL-bugs-f2117394.html





view thread (2+ messages)  latest in thread

Message-ID: <1586506892180-0.post@n3.nabble.com>
Permalink:  ../1586506892180-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1586506892180-0.post@n3.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: na97oribal@gmail.com
  Subject: Re: pg_tables anomalies
  In-Reply-To: <1586506892180-0.post@n3.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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