#+BEGIN_SRC sql :engine postgresql :dir /grid: :results output :colnames yes select 2+2 as four, 1+1 as one; #+END_SRC #+RESULTS: | 4\t2 | It works! As you see there are still some problems with ob-sql (no column names and \t is not parsed correctly) but the remote execution seems to be fixed. Thanks, Alex On Thu, Sep 26, 2013 at 11:53 AM, Michael Albinus wrote: > Alexander Vorobiev writes: > > > Hi Michael, > > Hi Alex, > > > I can't apply the patch for some reason. > > Strange. > > > Could you send it and/or new ob-core.el as a attachment? > > It's appended. > > > Thanks, > > Alex > > Best regards, Michael. > >