mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 10:31:02 +02:00
Refrain from using regexp_match() function, introduced in Pg10.
Instead use the substring() function which has been there all along. See #813.
This commit is contained in:
parent
c9b905b7ac
commit
4fbfd9e522
@ -9,9 +9,9 @@ with seqattr as
|
||||
adnum,
|
||||
adsrc,
|
||||
case when adsrc ~~ 'nextval'
|
||||
then (regexp_match(pg_get_expr(d.adbin, d.adrelid),
|
||||
'''([^'']+)''')
|
||||
)[1]::regclass::oid
|
||||
then substring(pg_get_expr(d.adbin, d.adrelid)
|
||||
from '''([^'']+)'''
|
||||
)::regclass::oid
|
||||
else null::oid
|
||||
end as seqoid
|
||||
from pg_attrdef d
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user