<p>pg_get_expr() is available back to Pg7.4 at least</p>
<p>Right now the SQL here will fail if using the newest Postgresql.  Not sure if backcompat to 7.4 is good enough or not.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>&nbsp;&nbsp;<a href='https://github.com/dbsrgits/sql-translator/pull/127'>https://github.com/dbsrgits/sql-translator/pull/127</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>pg_attrdef.adsrc no longer on Pg12+</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/dbsrgits/sql-translator/pull/127/files#diff-9d2ae1e6c9f2bcd217c74831f3846673">lib/SQL/Translator/Parser/DBI/PostgreSQL.pm</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/dbsrgits/sql-translator/pull/127.patch'>https://github.com/dbsrgits/sql-translator/pull/127.patch</a></li>
  <li><a href='https://github.com/dbsrgits/sql-translator/pull/127.diff'>https://github.com/dbsrgits/sql-translator/pull/127.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/dbsrgits/sql-translator/pull/127">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AACJ4AU577TXRD6CU6QZVLLRMGT4RANCNFSM4MGMJFBA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AACJ4ASQKS3MO35GRZFMAEDRMGT4RA5CNFSM4MGMJFBKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4I5L5EYQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/dbsrgits/sql-translator/pull/127",
"url": "https://github.com/dbsrgits/sql-translator/pull/127",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>