Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oEsLc-0000yr-BC for pgsql-general@arkaria.postgresql.org; Fri, 22 Jul 2022 13:05:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oEsLb-0001mD-3p for pgsql-general@arkaria.postgresql.org; Fri, 22 Jul 2022 13:05:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oEsLa-0001m4-P2 for pgsql-general@lists.postgresql.org; Fri, 22 Jul 2022 13:05:38 +0000 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oEsLY-0003iZ-MM for pgsql-general@lists.postgresql.org; Fri, 22 Jul 2022 13:05:37 +0000 Received: by mail-pg1-x52d.google.com with SMTP id 6so4362370pgb.13 for ; Fri, 22 Jul 2022 06:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=atwixl/RbkvixxFusRmXGHTPRRX2L++YGmWUwO7hyiQ=; b=bZhI6KKIQPPCns3Nv23od5Hay79d6V5n49R1rMiNGAzi/mJMg4N+tZuf7Ph3TgOSV6 dbBYToicmJBIZE2eu6CUjul7HNWgh2wcNnoGesHVlI0oMN3ZYjt7Sk+5mhbf213/74rp SKeCohEbrNyIPxOH9OFIhIy5bFNiJk1frJ6EoerkM1Gl7cep1R1sRPAGYTsc4wIAqc0g uQigwwvy2xBcb/0zb0PkXafqWyugzgH6Ecn5sIUb9ZjAvoncrpjUQleCNWNYanPXEqGg 6LNIV+f+ry4Qv+CTrPG7+u61VPKWH2kmw95NLR1CVMYYrQZU3TrI43A++DYejx4Cdr+Z I3lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=atwixl/RbkvixxFusRmXGHTPRRX2L++YGmWUwO7hyiQ=; b=f7FHEEYtCbkInXrk0xZOTHxmOaRiRiO/7c8dIp5+ZDrYD87OhPiAoTBNN/L6SbKx4d qBs9jd0iAdawtKHLMzLYFj++90lNjYs2cBXyKHSX/LqoyJW2Db9UgzVfReQmlHsEGsA+ EzmUqwRQbZz8radZQvjSxeHiWdd1r0dcFMoO5PR5vaza+b3cl3bDulYu7tNXNYHe+DHv Tr3b1ar6Fkj84CPGMCY3djse8utxD7xDh9V2FhVKpXyBbQqXscaA+0C6eUmBbY43/8xs rrLVMktNAftuSUzq2sQoWKoOZDX8eEUreD/lXs4SAx3y3PAkHCakJRJlEtd/1vHUE7nk ztew== X-Gm-Message-State: AJIora9cUs1PybV5RQxNDyQA2nh7UsCVg/uxMB7DybXF8lWMBGo3SjcJ 2cw7OzmX9FXT5ggC1Cb4X5w1lE2v1x9ENw== X-Google-Smtp-Source: AGRyM1vSbzAPKmgevT4u06aBPSb7o4CsZkIIzc+ju0Q9Q2Lb2CAOVrJqwNidsoF4HvXcKw6ww6zxLw== X-Received: by 2002:a63:4e11:0:b0:419:e9dd:a867 with SMTP id c17-20020a634e11000000b00419e9dda867mr454429pgb.481.1658495134745; Fri, 22 Jul 2022 06:05:34 -0700 (PDT) Received: from smtpclient.apple ([2601:681:5a00:820:907a:ba4c:f0c:ad1c]) by smtp.gmail.com with ESMTPSA id u4-20020a17090341c400b0016d23e941f2sm3726400ple.258.2022.07.22.06.05.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Jul 2022 06:05:33 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Rob Sargent Mime-Version: 1.0 (1.0) Subject: Re: Paging through table one row at a ttime Date: Fri, 22 Jul 2022 07:05:31 -0600 Message-Id: References: <9757a08e-7c32-048b-5584-b1bf09004dff@meddatainc.com> Cc: pgsql-general@lists.postgresql.org In-Reply-To: <9757a08e-7c32-048b-5584-b1bf09004dff@meddatainc.com> To: H X-Mailer: iPhone Mail (19F77) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jul 22, 2022, at 6:31 AM, H wrote: >=20 > =EF=BB=BFOn 07/20/2022 03:09 PM, H wrote: >> I am running postgres 13 under CentOS 7. I have a need to be able to page= through a table one row at a time, possibly using pspg (or other tool) allo= wing me to move in either direction in the table one single row at a time. I= deally only the columns in the selected row should be visible, even better i= f there would be one column of that row per row in the terminal window but t= hat would probably be wishing for too much. >>=20 >> Is there any configuration of pspg that would allow me to do the above? >>=20 >>=20 >>=20 > I have not seen any replies to my question above - is this perhaps not pos= sible to do? >=20 >=20 I didn=E2=80=99t follow the =E2=80=9Ceven better=E2=80=9D. Aside from that m= ost of us are simple sql users and data managers - we don=E2=80=99t go back a= nd forth row by row all that often. Have you found the LIMIT and OFFSET feat= ures of SELECT statement? After that your in application space and not this= forum perhaps >=20