Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id A3963632A3B for ; Fri, 19 Mar 2010 03:32:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 00652-04 for ; Fri, 19 Mar 2010 06:32:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by mail.postgresql.org (Postfix) with ESMTP id A14BC6329FC for ; Fri, 19 Mar 2010 03:32:18 -0300 (ADT) Received: by fxm24 with SMTP id 24so148105fxm.3 for ; Thu, 18 Mar 2010 23:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=/hfO4iGn/vVrAGJTcbFMXFGVhBGRnvZr4t+DLEynpZU=; b=fzvx0VRzQ+qyd3LYqu5srh6ka3gOW+kgxBbpInCTYcIGiYEe58K4EbVGs702gr1PIY np4SVNuOZRjqxMVP1NQ7uxqSsRwP+3kHlomPLeaBCtXEIq35Ym45OvIEP+UncFKaAnxu nocd2wgADKKqaLNA6LXezhWMOkh+rgoIF4H2I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=g8S80VNQbiB1tC4buGRbL2ThhC7P6MWwVF4Xu6uQnS6R7hKNQw4ngdPABAEq8RCG6+ N5kCZX2lq3duytrad1XsKvY4JLvfL9ALhUo7CoAzy5fMRLN771eT8zuMTSeem6SEBFZu 19tAsuXoTPwdC0/DoFX2nJfRQm3D7ApWRirRo= MIME-Version: 1.0 Received: by 10.239.185.148 with SMTP id c20mr1472323hbh.124.1268980337178; Thu, 18 Mar 2010 23:32:17 -0700 (PDT) In-Reply-To: <19215.1268953178@sss.pgh.pa.us> References: <19215.1268953178@sss.pgh.pa.us> Date: Fri, 19 Mar 2010 07:32:16 +0100 Message-ID: <162867791003182332k33301cb0h8e317874d57e9dc7@mail.gmail.com> Subject: Re: Emacs sql-postgres (please, sorry for question not about PostgreSQL). From: Pavel Stehule To: Tom Lane Cc: Dmitriy Igrishin , postgres list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.527 tagged_above=-10 required=5 tests=AWL=0.072, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/156 X-Sequence-Number: 33863 2010/3/18 Tom Lane : > Dmitriy Igrishin writes: >> I am using Emacs recently. I love sql-mode, to use with PostgreSQL, >> but I have problems with it. >> When my SQL file (or buffer) are small (50-100 lines) I can send >> it to SQLi buffer without any problems. But when I working with >> large SQL file (e.g. complex database model, thousands of lines) >> and send it to SQLi buffer it does not work properly. Something >> going on and in SQLi buffer (psql) I see incomplete SQL >> statement, for example: >> =C2=A0 =C2=A0 super=3D# super'# super'# super'# super'# >> It seems to single quote was not closed. But SQL is absolutely >> correct and loads fine when I load it from file directly from psql. >> I think, the problem with Emacs buffers... Please, help! > > Might or might not be related, but I've seen psql lock up when I try to > paste more than a thousand or two characters into it via X11 > copy-and-paste. =C2=A0You might find that disabling libreadline (option -= n > to psql) helps. > This behave is same without external copy/paste. SQL support in emacs is really great with some issues - like this or missing autocomplete. Pavel > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0regards, tom lane > > -- > Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-sql >