Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rxNX9-0086gN-NE for pgadmin-hackers@arkaria.postgresql.org; Thu, 18 Apr 2024 08:54:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rxNX8-002R5G-Ed for pgadmin-hackers@arkaria.postgresql.org; Thu, 18 Apr 2024 08:54:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rxNX8-002R58-7f for pgadmin-hackers@lists.postgresql.org; Thu, 18 Apr 2024 08:54:18 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rxNX4-003Qbp-5R for pgadmin-hackers@postgresql.org; Thu, 18 Apr 2024 08:54:17 +0000 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2db17e8767cso10426021fa.3 for ; Thu, 18 Apr 2024 01:54:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin.org; s=google; t=1713430452; x=1714035252; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=B3moDqU0xv2l5E1CfkVDDIlD8yBZrV9vonCoRRgofhY=; b=R8S7S2/oeDjlPugkiUQdScMKNgde9eDFeB5YlrZle6gzhOgwYjR3RhZtvoZ7hq2ORc f+7Rmzl7xEY49+RE8XlXMJ+m4K7FulGnPD6VD87iVewgXS8tmx6tgAT30FgasZhQ84+J zHPapj0WUV1+h7x9Yj4A9OtVy2Oyr84B3uieJsW7Pg8rfd//jOrxRQB2ctN7H0KXJpV9 /tgQJGnPlfTOsZhHhh4rcOePErDL+HcEOldgWRCx84MQpfggLv0/sm7nyyKiZtc97E2p xCBOsfZUs8mvtlUd6y83Qdau1sG3w3hY9SVgSsHheiDq2HoER5us0ZJpOm8e8DyShWM9 3ySQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713430452; x=1714035252; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=B3moDqU0xv2l5E1CfkVDDIlD8yBZrV9vonCoRRgofhY=; b=AjfD0bbjj08wtWzTh1wZ1qSjRkJTtpe+PUoTrBsCGlZZo+JEaTVnf75jRDrjTNgtHw J5vvl65WcCfuHZ7UEaRX8aLoVQ6yCH01ugwpyacsaZD/05oQ4SBoD82j+dQMzhf96SCj rMvS8Q1TNZCsjSQKUdcGb+wU7BhYYQlZn+TD5qxBQ7aOAdBfsLgwDnFU8MdFHd0BC9F4 SN5lMNkN3iTU/++Lo5lThtWI1iEqVLy3iML6e7cc/E27imM1EemjDd06OUmudnuRtc5I R7k7YzwfR/i/5vxnwhbhGbTwbIjkU8QzVbns5svvnc9m/1YFHYNT/QSsckZgGxoXBOWN fhuQ== X-Gm-Message-State: AOJu0Yw5fNguEk6QeFkghEOZElWYfPf6oSA6v+veRhGy5f0wClMyOF9a 6D6Q/2lgfgN9qPYSBCqGYLTFfPnXFtkislP/YrVnVS0TnbUYiQ3/8Ys7PgACFqdrsivgFzV8HC6 Dh05KiqHENDh7HMcRidkVwFGy7swYFTr+N2nxCJXkpjAUJq4= X-Google-Smtp-Source: AGHT+IEp5EBRIoApWpeaTg5//gsBykYRNrDVjIh2obub/M5ZAGUkkMbykUi4bcgavkeogXuKbgz5UUP4AcG3DbFeXZY= X-Received: by 2002:a2e:b4a9:0:b0:2d8:5084:f5b9 with SMTP id q9-20020a2eb4a9000000b002d85084f5b9mr1120009ljm.28.1713430452471; Thu, 18 Apr 2024 01:54:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dave Page Date: Thu, 18 Apr 2024 09:54:00 +0100 Message-ID: Subject: Re: Regarding feature #6841 To: Anil Sahoo Cc: pgadmin-hackers@postgresql.org Content-Type: multipart/alternative; boundary="00000000000077a79706165b1d8f" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000077a79706165b1d8f Content-Type: text/plain; charset="UTF-8" Hi On Wed, 17 Apr 2024 at 15:08, Anil Sahoo wrote: > Hi Hackers, > > This feature is about executing a query at the cursor position. And that > query can be a one line or multiline. I have assigned a play icon button > and F5 as the keyboard shortcut for the Execute Query feature, and for > Execute Script, Playlist icon button and Alt+F5(Others),Option+F5(Mac) as > keyboard shortcut. > > As now the query can run at cursor position, so for user convenience I am > showing the current query just beside the Data Output toolbar. And on hover > of the text, it will show the whole query as a tooltip. This query text > will be available for both Execute Script and Execute Query. > > I have made the UI change for the feature #6841 > . > > Please provide your suggestions and feedback if these changes look okay to > you. > How is this parsing the query to figure out the correct text to send to the server? For example, I notice you have no semi-colons on many of the queries in your test; is it breaking on newlines? What if there's a newline (or multiple of them) in the query string? How does it cope with an anonymous block containing multiple queries, or a pl/whatever function definition that might contain queries within its text? Or a view definition? -- Dave Page pgAdmin: https://www.pgadmin.org PostgreSQL: https://www.postgresql.org EDB: https://www.enterprisedb.com --00000000000077a79706165b1d8f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

On Wed, 17 Apr 2024 at 15:08, Anil Sahoo <anil.sahoo@enterprisedb.com>= ; wrote:
Hi Hackers,

This feature is about executing a query=C2=A0at the=C2=A0cursor pos= ition. And that query can be a one=C2=A0line or multiline. I have assigned = a play icon button and F5 as the keyboard shortcut for the Execute Query fe= ature, and for Execute Script, Playlist icon button and Alt+F5(Others),Opti= on+F5(Mac) as keyboard shortcut.

As now the query = can run at cursor position, so for user convenience I am showing the curren= t query just beside the Data=C2=A0Output toolbar. And on hover of the text,= it will show the whole query as a tooltip. This query text will be availab= le for both Execute Script and Execute Query.

I ha= ve made the UI change for the feature #6841.=C2=A0
Please provide your suggestions and feedback if these changes l= ook okay to you.

How is this pa= rsing the query to figure out the correct text to send to the server? For e= xample, I notice you have no semi-colons=C2=A0on many of the queries in you= r test; is it breaking on newlines? What if there's a newline (or multi= ple of them) in the query string? How does it cope with an anonymous block = containing multiple queries, or a pl/whatever function definition that migh= t contain queries within its text? Or a view definition?
=C2=A0
--
--00000000000077a79706165b1d8f--