Skip site navigation (1) Skip section navigation (2)

Re: table names seem identical

From: Walter Hurry <walterhurry(at)lavabit(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: table names seem identical
Date: 2012-03-07 17:41:41
Message-ID: jj86kl$mvu$1@dough.gmane.org (view raw or flat)
Thread:
Lists: pgsql-admin
On Wed, 07 Mar 2012 10:39:48 -0500, Ray Stell wrote:

> how I can differentiate these:
> 
> oamp=# \z public.c3*
>                                    Access privileges
>  Schema |         Name          | Type  | Access privileges | Column
>  access privileges
> --------+-----------------------+-------+-------------------
+--------------------------
>  public | c3p0_connection_test  | table |                   |
>  public | c3p0_connection_test  | table |                   |
> (2 rows)
> 
> oamp=# select * from pg_tables where tablename = 'c3p0_connection_test';
>  schemaname |      tablename       | tableowner | tablespace |
>  hasindexes | hasrules | hastriggers
> ------------+----------------------+------------+------------
+------------+----------+-------------
>  public     | c3p0_connection_test | admin      |            | f        
>   | f        | f
> (1 row)

misc=# create table test1(flag varchar(1));
CREATE TABLE
misc=# create table "test1 "(flag varchar(1));
CREATE TABLE


In response to

Responses

pgsql-admin by date

Next:From: Lukasz BrodziakDate: 2012-03-07 17:49:12
Subject: Re: pg_attribute file in PostgreSQL 9.0
Previous:From: Tom LaneDate: 2012-03-07 17:24:25
Subject: Re: pg_attribute file in PostgreSQL 9.0

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group