create table a1234567890abcdefghigklmnopqrstuvwzyz1234567890abcdefghijklmnopqrstuvwxyz(a int)
postgres-# ;
NOTICE: identifier "a1234567890abcdefghigklmnopqrstuvwzyz1234567890abcdefghijklmnopqrstuvwxyz" will be truncated to "a1234567890abcdefghigklmnopqrstuvwzyz1234567890abcdefghijklmnop"
CREATE TABLE
postgres=# \d
List of relations
Schema | Name | Type | Owner
--------+-----------------------------------------------------------------+-------+-------
public | a1234567890abcdefghigklmnopqrstuvwzyz1234567890abcdefghijklmnop | table | pg16
public | emp | table | pg16
(2 rows)
看一下长度:
postgres=# select length(relname) from pg_class where relname='a1234567890abcdefghigklmnopqrstuvwzyz1234567890abcdefghijklmnop';
length
--------
63
(1 row)