Similarly postgresql has access to the host shell:<p>COPY weather_json FROM PROGRAM 'curl <a href="https://api.openweathermap.org/data/2.5/weather?q=Tokyo';" rel="nofollow">https://api.openweathermap.org/data/2.5/weather?q=Tokyo';</a>
COPY 1<p>They both absolutely have to run under selinux.