– Forbidden words
When editing a table, please consider that the following words cannot be used for table name or for column name.
Most of those words are commands and are misinterpreted in the database.
More info in official Postgresql documentation.
a
abort
abs
absolute
access
accessible
action
ada
add
admin
after,aggregate
alias
all
allocate
also
alter
always
analyse
analyze
and
any
are
array
as
asc
asensitive
assertion
assignment
asymmetric
at
atomic
attribute
attributes
authorization
avg
backward
before
begin
bernoulli
between
bigint
binary
bit
bit_length
bitvar
blob
boolean
both
breadth
by
c
cache
call
called
cardinality
cascade
cascaded
case
cast
catalog
catalog_name
ceil
ceiling
chain
change
char
char_length
character
character_length
character_set_catalog
character_set_name
character_set_schema
characteristics
characters
check
checked
checkpoint
class
class_origin
clob
close
cluster
coalesce
cobol
collate
collation
collation_catalog
collation_name
collation_schema
collect
column
column_name
command_function
command_function_code
comment
commit
committed
completion
condition
condition_number
connect
connection
connection_name
constraint
constraint_catalog
constraint_name
constraint_schema
constraints
constructor
contains
continue
conversion
convert
copy
corr
corresponding
count
covar_pop
covar_samp
create
createdb
createrole
createuser
cross
csv
cube
cume_dist
current
current_date
current_default_transform_group
current_path
current_role
current_time
current_timestamp
current_transform_group_for_type
current_user
cursor
cursor_name
cycle
data
database
databases
date
datetime_interval_code
datetime_interval_precision
day
day_hour
day_microsecond
day_minute
day_second
deallocate
dec
decimal
declare
default
defaults
deferrable
deferred
defined
definer
degree
delayed
delete
delimiter
delimiters
dense_rank
depth
deref
derived
desc
describe
descriptor
destroy
destructor
deterministic
diagnostics
dictionary
disable
disconnect
dispatch
distinct
distinctrow
div
do
domain
double
drop
dual
dynamic
dynamic_function
dynamic_function_code
each
element
else
elseif
enable
enclosed
encoding
encrypted
end
end-exec
enum
equals
escape
escaped
every
except
exception
exclude
excluding
exclusive
exec
execute
existing
exists
exit
exp
explain
external
extract
false
fetch
filter
final
first
float
float4
float8
floor
following
for
force
foreign
fortran
forward
found
free
freeze
from
full
fulltext
function
fusion
g
general
generated
get
global
go
goto
grant
granted
greatest
group
grouping
handler
having
header
hierarchy
high_priority
hold
host
hour
hour_microsecond
hour_minute
hour_second
identity
if
ignore
ilike
immediate
immutable
implementation
implicit
in
including
increment
index
indicator
infile
infix
inherit
inherits
initialize
initially
inner
inout
input
insensitive
insert
instance
instantiable
instead
int
int1
int2
int3
int4
int8
integer
intersect
intersection
interval
into
invoker
io_after_gtids
io_after_gtids
io_before_gtids
io_before_gtids
is
isnull
isolation
iterate
join
k
key
key_member
key_type
keys
kill
lancompiler
language
large
last
lateral
leading
least
leave
left
length
less
level
like
limit
linear
listen
ln
load
local
localtime
localtimestamp
location
locator
lock
login
long
longblob
longtext
loop
low_priority
lower
m
map
master_bind
master_ssl_verify_server_cert
match
matched
max
maxvalue
mediumblob
mediumint
mediumtext
member
merge
message_length
message_octet_length
message_text
method
middleint
min
minute
minute_microsecond
minute_second
minvalue
mod
mode
modifies
modify
module
month
more
move
multiset
mumps
name
names
national
natural
nchar
nclob
nesting
new
next
no
no_write_to_binlog
nocreatedb
nocreaterole
nocreateuser
noinherit
nologin
none
normalize
normalized
nosuperuser
not
nothing
notify
notnull
nowait
null
nullable
nullif
nulls
number
numeric
object
octet_length
octets
of
off
offset
oids
old
on
one_shot
only
open
operation
operator
optimize
option
optionally
options
or
order
ordering
ordinality
others
out
outer
outfile
output
over
overlaps
overlay
overriding
owner
pad
parameter
parameter_mode
parameter_name
parameter_ordinal_position
parameter_specific_catalog
parameter_specific_name
parameter_specific_schema
parameters
partial
partition
pascal
password
path
percent_rank
percentile_cont
percentile_disc
placing
pli
position
postfix
power
preceding
precision
prefix
preorder
prepare
prepared
preserve
primary
prior
privileges
procedural
procedure
public
purge
quote
range
rank
read
read_write
reads
real
real
recheck
recursive
ref
references
referencing
regexp
regr_avgx
regr_avgy
regr_count
regr_intercept
regr_r2
regr_slope
regr_sxx
regr_sxy
regr_syy
reindex
relative
release
rename
repeat
repeatable
replace
require
reset
resignal
restart
restrict
result
return
returned_cardinality
returned_length
returned_octet_length
returned_sqlstate
returns
revoke
right
rlike
role
rollback
rollup
routine
routine_catalog
routine_name
routine_schema
row
row_count
row_number
rows
rule
savepoint
scale
schema
schema_name
schemas
scope
scope_catalog
scope_name
scope_schema
scroll
search
second
second_microsecond
section
security
select
self
sensitive
separator
sequence
serializable
server_name
session
session_user
set
setof
sets
share
show
signal
similar
simple
size
smallint
some
source
space
spatial
specific
specific_name
specifictype
sql
sql_after_gtids
sql_before_gtids
sql_big_result
sql_calc_found_rows
sql_small_result
sqlcode
sqlerror
sqlexception
sqlstate
sqlwarning
sqrt
ssl
stable
start
starting
state
statement
static
statistics
stddev_pop
stddev_samp
stdin
stdout
storage
straight_join
strict
structure
style
subclass_origin
sublist
submultiset
substring
sum
superuser
symmetric
sysid
system
system_user
table
table_name
tablesample
tablespace
temp
template
temporary
terminate
terminated
text
than
then
ties
time
timestamp
timezone_hour
timezone_minute
tinyblob
tinyint
tinytext
to
toast
top_level_count
trailing
transaction
transaction_active
transactions_committed
transactions_rolled_back
transform
transforms
translate
translation
treat
trigger
trigger_catalog
trigger_name
trigger_schema
trim
true
truncate
trusted
type
uescape
unbounded
uncommitted
under
undo
unencrypted
union
unique
unknown
unlisten
unlock
unnamed
unnest
unsigned
until
update
upper
usage
use
user
user_defined_type_catalog
user_defined_type_code
user_defined_type_name
user_defined_type_schema
using
utc_date
utc_time
utc_timestamp
vacuum
valid
validator
value
values
var_pop
var_samp
varbinary
varchar
varcharacter
variable
varying
verbose
view
volatile
when
whenever
where
while
width_bucket
window
with
within
without
work
write
xor
year
year_month
zerofill
zone