fork
This commit is contained in:
219
langs/pgsql/built.in.func.txt
Normal file
219
langs/pgsql/built.in.func.txt
Normal file
@ -0,0 +1,219 @@
|
||||
tsvector_update_trigger_column
|
||||
database_to_xml_and_xmlschema
|
||||
schema_to_xml_and_xmlschema
|
||||
table_to_xml_and_xmlschema
|
||||
query_to_xml_and_xmlschema
|
||||
tsvector_update_trigger
|
||||
regexp_split_to_array
|
||||
regexp_split_to_table
|
||||
transaction_timestamp
|
||||
get_current_ts_config
|
||||
database_to_xmlschema
|
||||
statement_timestamp
|
||||
cursor_to_xmlschema
|
||||
schema_to_xmlschema
|
||||
generate_subscripts
|
||||
pg_client_encoding
|
||||
table_to_xmlschema
|
||||
query_to_xmlschema
|
||||
character_length
|
||||
justify_interval
|
||||
clock_timestamp
|
||||
plainto_tsquery
|
||||
database_to_xml
|
||||
array_to_string
|
||||
string_to_array
|
||||
generate_series
|
||||
quote_nullable
|
||||
regexp_matches
|
||||
regexp_replace
|
||||
regr_intercept
|
||||
quote_literal
|
||||
justify_hours
|
||||
ts_token_type
|
||||
schema_to_xml
|
||||
array_prepend
|
||||
width_bucket
|
||||
octet_length
|
||||
convert_from
|
||||
to_timestamp
|
||||
justify_days
|
||||
array_append
|
||||
array_length
|
||||
percent_rank
|
||||
char_length
|
||||
quote_ident
|
||||
set_masklen
|
||||
to_tsvector
|
||||
ts_headline
|
||||
array_ndims
|
||||
array_lower
|
||||
array_upper
|
||||
stddev_samp
|
||||
first_value
|
||||
bit_length
|
||||
convert_to
|
||||
split_part
|
||||
date_trunc
|
||||
enum_first
|
||||
enum_range
|
||||
to_tsquery
|
||||
ts_rank_cd
|
||||
ts_rewrite
|
||||
xmlcomment
|
||||
xmlelement
|
||||
array_dims
|
||||
array_fill
|
||||
string_agg
|
||||
covar_samp
|
||||
regr_count
|
||||
regr_slope
|
||||
stddev_pop
|
||||
row_number
|
||||
dense_rank
|
||||
last_value
|
||||
substring
|
||||
translate
|
||||
to_number
|
||||
date_part
|
||||
timeofday
|
||||
enum_last
|
||||
broadcast
|
||||
setweight
|
||||
querytree
|
||||
ts_lexise
|
||||
xmlconcat
|
||||
xmlforest
|
||||
array_cat
|
||||
array_agg
|
||||
covar_pop
|
||||
regr_avgx
|
||||
regr_avgy
|
||||
cume_dist
|
||||
nth_value
|
||||
position
|
||||
to_ascii
|
||||
get_byte
|
||||
set_byte
|
||||
isfinite
|
||||
diameter
|
||||
isclosed
|
||||
hostmask
|
||||
ts_debug
|
||||
ts_parse
|
||||
coalesce
|
||||
greatest
|
||||
bool_and
|
||||
regr_sxx
|
||||
regr_sxy
|
||||
regr_syy
|
||||
variance
|
||||
var_samp
|
||||
ceiling
|
||||
degrees
|
||||
radians
|
||||
setseed
|
||||
convert
|
||||
initcap
|
||||
get_bit
|
||||
set_bit
|
||||
to_char
|
||||
to_date
|
||||
extract
|
||||
npoints
|
||||
polygon
|
||||
masklen
|
||||
netmask
|
||||
network
|
||||
numnode
|
||||
ts_rank
|
||||
ts_stat
|
||||
xmlroot
|
||||
currval
|
||||
lastval
|
||||
nextval
|
||||
bit_and
|
||||
bool_or
|
||||
regr_r2
|
||||
var_pop
|
||||
random
|
||||
decode
|
||||
encode
|
||||
length
|
||||
repeat
|
||||
strpos
|
||||
substr
|
||||
to_hex
|
||||
center
|
||||
height
|
||||
isopen
|
||||
pclose
|
||||
radius
|
||||
circle
|
||||
abbrev
|
||||
family
|
||||
xmlagg
|
||||
setval
|
||||
nullif
|
||||
unnest
|
||||
bit_or
|
||||
stddev
|
||||
floor
|
||||
power
|
||||
round
|
||||
trunc
|
||||
atan2
|
||||
lower
|
||||
upper
|
||||
ascii
|
||||
btrim
|
||||
ltrim
|
||||
rtrim
|
||||
popen
|
||||
width
|
||||
point
|
||||
strip
|
||||
xmlpi
|
||||
xpath
|
||||
least
|
||||
count
|
||||
every
|
||||
ntile
|
||||
cbrt
|
||||
ceil
|
||||
sign
|
||||
sqrt
|
||||
acos
|
||||
asin
|
||||
atan
|
||||
trim
|
||||
lpad
|
||||
rpad
|
||||
area
|
||||
lseg
|
||||
path
|
||||
host
|
||||
corr
|
||||
rank
|
||||
lead
|
||||
abs
|
||||
div
|
||||
exp
|
||||
log
|
||||
mod
|
||||
cos
|
||||
cot
|
||||
sin
|
||||
tan
|
||||
chr
|
||||
md5
|
||||
age
|
||||
now
|
||||
box
|
||||
avg
|
||||
max
|
||||
min
|
||||
sum
|
||||
lag
|
||||
ln
|
||||
pi
|
60
langs/pgsql/operator.txt
Normal file
60
langs/pgsql/operator.txt
Normal file
@ -0,0 +1,60 @@
|
||||
# logical
|
||||
AND
|
||||
OR
|
||||
NOT
|
||||
# comparison
|
||||
<=
|
||||
>=
|
||||
!=
|
||||
<>
|
||||
<
|
||||
>
|
||||
=
|
||||
# math
|
||||
||/
|
||||
|/
|
||||
!!
|
||||
<<
|
||||
>>
|
||||
+
|
||||
-
|
||||
*
|
||||
/
|
||||
%
|
||||
^
|
||||
!
|
||||
@
|
||||
&
|
||||
|
|
||||
#
|
||||
~
|
||||
# string
|
||||
!~*
|
||||
!~
|
||||
~*
|
||||
||
|
||||
# geo
|
||||
@-@
|
||||
<->
|
||||
<<|
|
||||
|>>
|
||||
&<|
|
||||
|&>
|
||||
?-|
|
||||
?||
|
||||
@@
|
||||
##
|
||||
&&
|
||||
&<
|
||||
&>
|
||||
<^
|
||||
>^
|
||||
?#
|
||||
?-
|
||||
?|
|
||||
@>
|
||||
<@
|
||||
~=
|
||||
# network
|
||||
<<=
|
||||
>>=
|
18
langs/pgsql/pgsql.txt
Normal file
18
langs/pgsql/pgsql.txt
Normal file
@ -0,0 +1,18 @@
|
||||
### PgSQL LANGUAGE ###
|
||||
|
||||
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
|
||||
|
||||
NAME PgSQL
|
||||
VERSION 1.8.0
|
||||
|
||||
COMMENT (/\*.*?\*/)|(--.*?$)
|
||||
STRING ((?<!\\)'.*?(?<!\\)')
|
||||
|
||||
STATEMENT \b(?alt:statement.txt)\b
|
||||
RESERVED \b(?alt:reserved.txt)\b
|
||||
TYPE \b(?alt:type.txt)\b
|
||||
|
||||
BUILT_IN:ENTITY \b(?alt:built.in.func.txt)\b
|
||||
IDENTIFIER ((?<!\\)".*?(?<!\\)")
|
||||
OPERATOR \b(?alt:operator.txt)\b
|
||||
|
369
langs/pgsql/reserved.txt
Normal file
369
langs/pgsql/reserved.txt
Normal file
@ -0,0 +1,369 @@
|
||||
returns null on null input
|
||||
current_timestamp
|
||||
characteristics
|
||||
current_catalog
|
||||
current_schema
|
||||
localtimestamp
|
||||
authorization
|
||||
configuration
|
||||
xmlattributes
|
||||
concurrently
|
||||
current_date
|
||||
current_role
|
||||
current_time
|
||||
current_user
|
||||
nocreaterole
|
||||
nocreateuser
|
||||
serializable
|
||||
session_user
|
||||
xmlserialize
|
||||
constraints
|
||||
nulls first
|
||||
constraints
|
||||
insensitive
|
||||
lancompiler
|
||||
nosuperuser
|
||||
uncommitted
|
||||
unencrypted
|
||||
conversion
|
||||
privileges
|
||||
tablespace
|
||||
constraint
|
||||
references
|
||||
nulls last
|
||||
assignment
|
||||
asymmetric
|
||||
connection
|
||||
constraint
|
||||
conversion
|
||||
createrole
|
||||
createuser
|
||||
deferrable
|
||||
delimiters
|
||||
dictionary
|
||||
lc_collate
|
||||
nocreatedb
|
||||
privileges
|
||||
procedural
|
||||
references
|
||||
repeatable
|
||||
standalone
|
||||
statistics
|
||||
tablespace
|
||||
whitespace
|
||||
xmlelement
|
||||
aggregate
|
||||
collation
|
||||
extension
|
||||
including
|
||||
no action
|
||||
immutable
|
||||
aggregate
|
||||
assertion
|
||||
committed
|
||||
delimiter
|
||||
encrypted
|
||||
excluding
|
||||
exclusive
|
||||
following
|
||||
immediate
|
||||
immutable
|
||||
including
|
||||
increment
|
||||
initially
|
||||
isolation
|
||||
localtime
|
||||
noinherit
|
||||
partition
|
||||
preceding
|
||||
precision
|
||||
procedure
|
||||
statement
|
||||
superuser
|
||||
symmetric
|
||||
temporary
|
||||
unbounded
|
||||
validator
|
||||
xmlconcat
|
||||
xmlforest
|
||||
database
|
||||
function
|
||||
language
|
||||
operator
|
||||
sequence
|
||||
not null
|
||||
defaults
|
||||
inherits
|
||||
set null
|
||||
restrict
|
||||
volatile
|
||||
distinct
|
||||
absolute
|
||||
backward
|
||||
cascaded
|
||||
continue
|
||||
createdb
|
||||
database
|
||||
defaults
|
||||
deferred
|
||||
distinct
|
||||
document
|
||||
encoding
|
||||
external
|
||||
function
|
||||
identity
|
||||
implicit
|
||||
inherits
|
||||
language
|
||||
lc_ctype
|
||||
location
|
||||
maxvalue
|
||||
minvalue
|
||||
national
|
||||
operator
|
||||
overlaps
|
||||
password
|
||||
position
|
||||
prepared
|
||||
preserve
|
||||
reassign
|
||||
relative
|
||||
restrict
|
||||
security
|
||||
sequence
|
||||
template
|
||||
trailing
|
||||
variadic
|
||||
volatile
|
||||
xmlparse
|
||||
default
|
||||
foreign
|
||||
wrapper
|
||||
trigger
|
||||
mapping
|
||||
primary
|
||||
cascade
|
||||
returns
|
||||
plpgsql
|
||||
extract
|
||||
analyse
|
||||
between
|
||||
cascade
|
||||
catalog
|
||||
collate
|
||||
content
|
||||
current
|
||||
default
|
||||
definer
|
||||
disable
|
||||
extract
|
||||
foreign
|
||||
forward
|
||||
granted
|
||||
handler
|
||||
indexes
|
||||
inherit
|
||||
invoker
|
||||
leading
|
||||
mapping
|
||||
natural
|
||||
nologin
|
||||
nothing
|
||||
notnull
|
||||
numeric
|
||||
options
|
||||
overlay
|
||||
partial
|
||||
placing
|
||||
primary
|
||||
recheck
|
||||
release
|
||||
replica
|
||||
restart
|
||||
returns
|
||||
session
|
||||
similar
|
||||
storage
|
||||
trigger
|
||||
trusted
|
||||
unknown
|
||||
verbose
|
||||
version
|
||||
without
|
||||
wrapper
|
||||
xmlroot
|
||||
domain
|
||||
object
|
||||
family
|
||||
schema
|
||||
server
|
||||
unique
|
||||
stable
|
||||
strict
|
||||
offset
|
||||
access
|
||||
action
|
||||
always
|
||||
called
|
||||
column
|
||||
cursor
|
||||
domain
|
||||
double
|
||||
enable
|
||||
escape
|
||||
family
|
||||
freeze
|
||||
global
|
||||
header
|
||||
isnull
|
||||
minute
|
||||
nowait
|
||||
object
|
||||
offset
|
||||
option
|
||||
parser
|
||||
rename
|
||||
return
|
||||
revoke
|
||||
schema
|
||||
scroll
|
||||
search
|
||||
second
|
||||
server
|
||||
simple
|
||||
stable
|
||||
stdout
|
||||
strict
|
||||
system
|
||||
unique
|
||||
window
|
||||
table
|
||||
group
|
||||
index
|
||||
large
|
||||
class
|
||||
limit
|
||||
check
|
||||
abort
|
||||
admin
|
||||
cache
|
||||
chain
|
||||
check
|
||||
class
|
||||
cross
|
||||
cycle
|
||||
FALSE
|
||||
fetch
|
||||
first
|
||||
force
|
||||
group
|
||||
ilike
|
||||
index
|
||||
inner
|
||||
inout
|
||||
input
|
||||
large
|
||||
level
|
||||
limit
|
||||
local
|
||||
login
|
||||
match
|
||||
month
|
||||
names
|
||||
nulls
|
||||
order
|
||||
outer
|
||||
owned
|
||||
owner
|
||||
plans
|
||||
prior
|
||||
quote
|
||||
range
|
||||
reset
|
||||
right
|
||||
setof
|
||||
share
|
||||
start
|
||||
stdin
|
||||
strip
|
||||
sysid
|
||||
table
|
||||
treat
|
||||
until
|
||||
valid
|
||||
value
|
||||
while
|
||||
write
|
||||
xmlpi
|
||||
data
|
||||
role
|
||||
type
|
||||
user
|
||||
null
|
||||
like
|
||||
only
|
||||
desc
|
||||
both
|
||||
cast
|
||||
cost
|
||||
data
|
||||
desc
|
||||
each
|
||||
full
|
||||
hold
|
||||
hour
|
||||
last
|
||||
left
|
||||
like
|
||||
mode
|
||||
name
|
||||
next
|
||||
none
|
||||
null
|
||||
oids
|
||||
only
|
||||
over
|
||||
read
|
||||
role
|
||||
rows
|
||||
show
|
||||
temp
|
||||
TRUE
|
||||
type
|
||||
user
|
||||
view
|
||||
work
|
||||
year
|
||||
zone
|
||||
key
|
||||
add
|
||||
sql
|
||||
asc
|
||||
new
|
||||
old
|
||||
add
|
||||
and
|
||||
asc
|
||||
csv
|
||||
day
|
||||
dec
|
||||
key
|
||||
new
|
||||
not
|
||||
off
|
||||
old
|
||||
out
|
||||
row
|
||||
yes
|
||||
as
|
||||
on
|
||||
to
|
||||
as
|
||||
at
|
||||
by
|
||||
is
|
||||
no
|
||||
of
|
||||
on
|
||||
or
|
||||
to
|
95
langs/pgsql/statement.txt
Normal file
95
langs/pgsql/statement.txt
Normal file
@ -0,0 +1,95 @@
|
||||
natural right outer join
|
||||
natural left outer join
|
||||
natural full outer join
|
||||
natural inner join
|
||||
natural right join
|
||||
natural cross join
|
||||
natural left join
|
||||
natural full join
|
||||
right outer join
|
||||
left outer join
|
||||
full outer join
|
||||
natural join
|
||||
transaction
|
||||
checkpoint
|
||||
deallocate
|
||||
inner join
|
||||
right join
|
||||
cross join
|
||||
savepoint
|
||||
recursive
|
||||
left join
|
||||
full join
|
||||
intersect
|
||||
returning
|
||||
rollback
|
||||
truncate
|
||||
unlisten
|
||||
group by
|
||||
coalesce
|
||||
greatest
|
||||
end loop
|
||||
replace
|
||||
analyze
|
||||
cluster
|
||||
comment
|
||||
declare
|
||||
discard
|
||||
execute
|
||||
explain
|
||||
prepare
|
||||
reindex
|
||||
instead
|
||||
create
|
||||
commit
|
||||
delete
|
||||
insert
|
||||
listen
|
||||
notify
|
||||
select
|
||||
except
|
||||
update
|
||||
vacuum
|
||||
values
|
||||
having
|
||||
nullif
|
||||
exists
|
||||
not in
|
||||
end if
|
||||
before
|
||||
alter
|
||||
begin
|
||||
close
|
||||
fatch
|
||||
grant
|
||||
using
|
||||
union
|
||||
where
|
||||
least
|
||||
elsif
|
||||
after
|
||||
drop
|
||||
copy
|
||||
load
|
||||
lock
|
||||
move
|
||||
with
|
||||
join
|
||||
from
|
||||
case
|
||||
when
|
||||
then
|
||||
else
|
||||
some
|
||||
loop
|
||||
rule
|
||||
also
|
||||
into
|
||||
end
|
||||
set
|
||||
any
|
||||
all
|
||||
for
|
||||
do
|
||||
in
|
||||
if
|
78
langs/pgsql/type.txt
Normal file
78
langs/pgsql/type.txt
Normal file
@ -0,0 +1,78 @@
|
||||
time with time zone
|
||||
character varying
|
||||
double precision
|
||||
txid_snapshot
|
||||
bit varying
|
||||
timestamptz
|
||||
bigserial
|
||||
character
|
||||
timestamp
|
||||
bigserial
|
||||
character
|
||||
timestamp
|
||||
interval
|
||||
smallint
|
||||
interval
|
||||
smallint
|
||||
tsvector
|
||||
abstime
|
||||
boolean
|
||||
decimal
|
||||
integer
|
||||
varchar
|
||||
serial8
|
||||
boolean
|
||||
varchar
|
||||
integer
|
||||
macaddr
|
||||
numeric
|
||||
polygon
|
||||
serial4
|
||||
tsquery
|
||||
bigint
|
||||
binary
|
||||
circle
|
||||
bigint
|
||||
varbit
|
||||
circle
|
||||
float8
|
||||
float4
|
||||
serial
|
||||
array
|
||||
bytea
|
||||
float
|
||||
nchar
|
||||
bytea
|
||||
money
|
||||
point
|
||||
char
|
||||
cidr
|
||||
date
|
||||
enum
|
||||
inet
|
||||
real
|
||||
text
|
||||
time
|
||||
int8
|
||||
bool
|
||||
char
|
||||
cidr
|
||||
date
|
||||
inet
|
||||
int4
|
||||
line
|
||||
lseg
|
||||
path
|
||||
real
|
||||
int2
|
||||
text
|
||||
time
|
||||
uuid
|
||||
bit
|
||||
box
|
||||
int
|
||||
xml
|
||||
bit
|
||||
box
|
||||
int
|
||||
xml
|
Reference in New Issue
Block a user