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 1k7Mcg-0002b1-I1 for pgsql-general@arkaria.postgresql.org; Sun, 16 Aug 2020 17:39:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k7Mcf-0007ng-Fa for pgsql-general@arkaria.postgresql.org; Sun, 16 Aug 2020 17:39:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k7Mcf-0007nY-5U for pgsql-general@lists.postgresql.org; Sun, 16 Aug 2020 17:39:09 +0000 Received: from mail-oi1-x242.google.com ([2607:f8b0:4864:20::242]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k7Mca-00051Z-Uv for pgsql-general@lists.postgresql.org; Sun, 16 Aug 2020 17:39:08 +0000 Received: by mail-oi1-x242.google.com with SMTP id l204so12868007oib.3 for ; Sun, 16 Aug 2020 10:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=25u6uh3bHWf5ic1VdMh4PeOf1ade1jSJA9XJBtDPgOM=; b=HcIncj3m8hyp8y/MivDpN7Ov+c4MdWrOICDDO06Tn2Rf1OJ5G5zEHYt0qD1I/O5gOx Da9H/QEQyKrIm/J0uO0oepelzRpQxBdMeOabdDELqMg+FPQnDxbjnHbZx5kEBqK3+wKD dTl6FSWrxTpInd4sYDb96Q81fZHYxQ4Gm9z4I0KnLVU0tNwPu4wtAnSOIadxn3Yqk4yX LGxCkzYgPYSTJWIFRS+F5Q/3g52d3/1nDd5bgOcFPc0h4yeHseW7GBXKWl7USon2MOyl Lfb/O52la1W7oCtOQoYBiGZuNoWF11neo5DUifEUEkGA6OpyVgcqXpItwUx8wezoGNz9 ANSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=25u6uh3bHWf5ic1VdMh4PeOf1ade1jSJA9XJBtDPgOM=; b=bQO00gAoXvF+KgV0J3NVf8vi7UMu6eCzwTr0Yf5midnp6WV8IwaqiacpRo0EzkKfLg K0T05fNStvTQfkF8JOCt0KPHT6NSGmgFCAFPhLwKwn1lIqbeKAil4YoP3pG33ZOBE0gg wJbO0yCJrNy7fJqx0rOtSqQC417qpkiDLbuuDamDNmdFwBFZGELcD3txEPuIjh8ywetO hcFLUxNAGTBQbjqUiS8/RlN+g2JzvsULoiIZdNSjCVdAKFD2FgEP7GykdPlYWkAJsWQA 9+1jUjThhFsAChNOgsWOcLeX6MJaLVq8KGSl/5KqWzjXyfbal7CIqipx6TmCUxRiMChF o0Ww== X-Gm-Message-State: AOAM530bYdlFunKrOc5vrJRUcV5dvXwlCCEQjHEDzfFDFMNkomjRNTip 8iidugwOBmayeV0wAoMmU/oiCHqDMhLvGg== X-Google-Smtp-Source: ABdhPJwHr9e1wN0OwLcANTuAQWLSaM/F9lgqSAdPUzyt/Quro1Bw1CCmim0CFawv096sheECH/1jYg== X-Received: by 2002:aca:5642:: with SMTP id k63mr7012381oib.42.1597599542561; Sun, 16 Aug 2020 10:39:02 -0700 (PDT) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id a15sm3027241oid.49.2020.08.16.10.39.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 Aug 2020 10:39:02 -0700 (PDT) Subject: Re: Bytea Example To: pgsql-general@lists.postgresql.org References: <24b837bf-3a17-bfa5-d1de-5ba324da41d5@aklaver.com> <6a3120d5-2b75-2a9a-4e99-b6861316ffbd@aklaver.com> From: Ron Message-ID: <52aaf0c6-4ab5-58fb-ddf2-ebe26542e620@gmail.com> Date: Sun, 16 Aug 2020 12:39:01 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk OP originally wrote that he needs to exports and import them, so presumably he's just using psql. On 8/16/20 12:33 PM, Francisco Olarte wrote: > Naveen: > > 1st, do not top post, it is frowned upon here. AAMOF I was tempted to > skip your message due to this, as it makes replying too hard. > > AK asked you (twice), "What programming language and database driver > are you using?" > > On Sun, Aug 16, 2020 at 7:11 PM Naveen Kumar wrote: >> I am connected to PostgreSQL in a Windows environment. Below is my version: >> "PostgreSQL 12.3, compiled by Visual C++ build 1914, 64-bit" > AK question is relevant because pg is a client-server database. I > assume you have the server correctly installed and running, but we > need to know what client software you are using, i.e.... > > - "I'm using the bundled psql command line program." > In this case you interact by sending sql commands directly (I'm not > able to put a sample because I never use bytea from psql, but many on > this list do and can help you. > > - "I'm using pgAdmin4", and some pgAdmin user can help you. > > - "I'm using a C program using libpq" > > - "I'm using a Java program using JDBC" > >> I am just trying to practice LOB objects, like byteA data type, in PostgreSQL. Unfortunately, I didn't find good links regarding this so I raised the issue. Nothing else I am doing. > There are lot of links, many people know them by heart, but you need > to help them by answering the question. > > The driver/language phrasing in AK question is because normally no one > uses a plain sql ( psql/pgadmin) tool for LOBs, but if you do there > are links which can be provided. > > Bear in mind that for all we know you could be connecting using your > own gopher based tool which translates coloquial swahili to sql. > > Francisco Olarte. > > -- Angular momentum makes the world go 'round.