pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedBytea Example
10+ messages / 5 participants
[nested] [flat]
* Bytea Example
@ 2020-08-13 13:40 Naveen Kumar <naveenmcp@gmail.com>
0 siblings, 2 replies; 10+ messages in thread
From: Naveen Kumar @ 2020-08-13 13:40 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Can someone please give me an example on byteA data type.
1. How to import a image/text file into Bytea data type.?
2. How to export the same?
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Bytea Example
@ 2020-08-13 13:47 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Naveen Kumar <naveenmcp@gmail.com>
1 sibling, 1 reply; 10+ messages in thread
From: Adrian Klaver @ 2020-08-13 13:47 UTC (permalink / raw)
To: Naveen Kumar <naveenmcp@gmail.com>; pgsql-general@lists.postgresql.org
On 8/13/20 6:40 AM, Naveen Kumar wrote:
> Can someone please give me an example on byteA data type.
>
> 1. How to import a image/text file into Bytea data type.?
> 2. How to export the same?
What programming language and database driver are you using?
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Bytea Example
@ 2020-08-13 13:49 Naveen Kumar <naveenmcp@gmail.com>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 1 reply; 10+ messages in thread
From: Naveen Kumar @ 2020-08-13 13:49 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: pgsql-general@lists.postgresql.org
I am trying to migrate the database from Oracle to PostgreSQL
On Thu, Aug 13, 2020 at 7:17 PM Adrian Klaver <adrian.klaver@aklaver.com>
wrote:
> On 8/13/20 6:40 AM, Naveen Kumar wrote:
> > Can someone please give me an example on byteA data type.
> >
> > 1. How to import a image/text file into Bytea data type.?
> > 2. How to export the same?
>
> What programming language and database driver are you using?
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
>
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Bytea Example
@ 2020-08-13 13:51 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Naveen Kumar <naveenmcp@gmail.com>
0 siblings, 1 reply; 10+ messages in thread
From: Adrian Klaver @ 2020-08-13 13:51 UTC (permalink / raw)
To: Naveen Kumar <naveenmcp@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
On 8/13/20 6:49 AM, Naveen Kumar wrote:
> I am trying to migrate the database from Oracle to PostgreSQL
The question was:
What programming language and database driver are you using?
>
> On Thu, Aug 13, 2020 at 7:17 PM Adrian Klaver <adrian.klaver@aklaver.com
> <mailto:adrian.klaver@aklaver.com>> wrote:
>
> On 8/13/20 6:40 AM, Naveen Kumar wrote:
> > Can someone please give me an example on byteA data type.
> >
> > 1. How to import a image/text file into Bytea data type.?
> > 2. How to export the same?
>
> What programming language and database driver are you using?
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Bytea Example
@ 2020-08-13 13:56 Naveen Kumar <naveenmcp@gmail.com>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 1 reply; 10+ messages in thread
From: Naveen Kumar @ 2020-08-13 13:56 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: pgsql-general@lists.postgresql.org
I am not using any programming language. I am simply using PostgreSQL 12
version that's all
On Thu, Aug 13, 2020 at 7:21 PM Adrian Klaver <adrian.klaver@aklaver.com>
wrote:
> On 8/13/20 6:49 AM, Naveen Kumar wrote:
> > I am trying to migrate the database from Oracle to PostgreSQL
>
> The question was:
>
> What programming language and database driver are you using?
>
> >
> > On Thu, Aug 13, 2020 at 7:17 PM Adrian Klaver <adrian.klaver@aklaver.com
> > <mailto:adrian.klaver@aklaver.com>> wrote:
> >
> > On 8/13/20 6:40 AM, Naveen Kumar wrote:
> > > Can someone please give me an example on byteA data type.
> > >
> > > 1. How to import a image/text file into Bytea data type.?
> > > 2. How to export the same?
> >
> > What programming language and database driver are you using?
> >
> > --
> > Adrian Klaver
> > adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> >
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
>
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Bytea Example
@ 2020-08-13 14:04 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Naveen Kumar <naveenmcp@gmail.com>
0 siblings, 1 reply; 10+ messages in thread
From: Adrian Klaver @ 2020-08-13 14:04 UTC (permalink / raw)
To: Naveen Kumar <naveenmcp@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
On 8/13/20 6:56 AM, Naveen Kumar wrote:
> I am not using any programming language. I am simply using PostgreSQL 12
> version that's all
I'm having a hard time figuring out how you are migrating from Oracle to
Postgres without using at least SQL and some sort of driver to pull out
of one and push into the other.
>
> On Thu, Aug 13, 2020 at 7:21 PM Adrian Klaver <adrian.klaver@aklaver.com
> <mailto:adrian.klaver@aklaver.com>> wrote:
>
> On 8/13/20 6:49 AM, Naveen Kumar wrote:
> > I am trying to migrate the database from Oracle to PostgreSQL
>
> The question was:
>
> What programming language and database driver are you using?
>
> >
> > On Thu, Aug 13, 2020 at 7:17 PM Adrian Klaver
> <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> > <mailto:adrian.klaver@aklaver.com
> <mailto:adrian.klaver@aklaver.com>>> wrote:
> >
> > On 8/13/20 6:40 AM, Naveen Kumar wrote:
> > > Can someone please give me an example on byteA data type.
> > >
> > > 1. How to import a image/text file into Bytea data type.?
> > > 2. How to export the same?
> >
> > What programming language and database driver are you using?
> >
> > --
> > Adrian Klaver
> > adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> <mailto:adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>>
> >
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Bytea Example
@ 2020-08-13 14:19 David G. Johnston <david.g.johnston@gmail.com>
parent: Naveen Kumar <naveenmcp@gmail.com>
1 sibling, 0 replies; 10+ messages in thread
From: David G. Johnston @ 2020-08-13 14:19 UTC (permalink / raw)
To: Naveen Kumar <naveenmcp@gmail.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
On Thursday, August 13, 2020, Naveen Kumar <naveenmcp@gmail.com> wrote:
> Can someone please give me an example on byteA data type.
>
> 1. How to import a image/text file into Bytea data type.?
> 2. How to export the same?
>
At a simple level its no different than importing and exporting character
data using a “text/varchar” field or a number using an integer field. For
bytea the content is just raw bytes instead of characters or numbers.
David J.
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Bytea Example
@ 2020-08-16 17:10 Naveen Kumar <naveenmcp@gmail.com>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 1 reply; 10+ messages in thread
From: Naveen Kumar @ 2020-08-16 17:10 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: pgsql-general@lists.postgresql.org
sorry for the late reply. Below is my issue:
I am connected to PostgreSQL in a Windows environment. Below is my version:
*"PostgreSQL 12.3, compiled by Visual C++ build 1914, 64-bit"*
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.
Thank you one and all !!
Thanks & Regards
Naveen
On Thu, Aug 13, 2020 at 7:34 PM Adrian Klaver <adrian.klaver@aklaver.com>
wrote:
> On 8/13/20 6:56 AM, Naveen Kumar wrote:
> > I am not using any programming language. I am simply using PostgreSQL 12
> > version that's all
>
> I'm having a hard time figuring out how you are migrating from Oracle to
> Postgres without using at least SQL and some sort of driver to pull out
> of one and push into the other.
>
> >
> > On Thu, Aug 13, 2020 at 7:21 PM Adrian Klaver <adrian.klaver@aklaver.com
> > <mailto:adrian.klaver@aklaver.com>> wrote:
> >
> > On 8/13/20 6:49 AM, Naveen Kumar wrote:
> > > I am trying to migrate the database from Oracle to PostgreSQL
> >
> > The question was:
> >
> > What programming language and database driver are you using?
> >
> > >
> > > On Thu, Aug 13, 2020 at 7:17 PM Adrian Klaver
> > <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> > > <mailto:adrian.klaver@aklaver.com
> > <mailto:adrian.klaver@aklaver.com>>> wrote:
> > >
> > > On 8/13/20 6:40 AM, Naveen Kumar wrote:
> > > > Can someone please give me an example on byteA data type.
> > > >
> > > > 1. How to import a image/text file into Bytea data type.?
> > > > 2. How to export the same?
> > >
> > > What programming language and database driver are you using?
> > >
> > > --
> > > Adrian Klaver
> > > adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> > <mailto:adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com
> >>
> > >
> >
> >
> > --
> > Adrian Klaver
> > adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> >
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
>
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Bytea Example
@ 2020-08-16 17:33 Francisco Olarte <folarte@peoplecall.com>
parent: Naveen Kumar <naveenmcp@gmail.com>
0 siblings, 1 reply; 10+ messages in thread
From: Francisco Olarte @ 2020-08-16 17:33 UTC (permalink / raw)
To: Naveen Kumar <naveenmcp@gmail.com>; +Cc: Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
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 <naveenmcp@gmail.com> 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.
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Bytea Example
@ 2020-08-16 17:39 Ron <ronljohnsonjr@gmail.com>
parent: Francisco Olarte <folarte@peoplecall.com>
0 siblings, 0 replies; 10+ messages in thread
From: Ron @ 2020-08-16 17:39 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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 <naveenmcp@gmail.com> 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.
^ permalink raw reply [nested|flat] 10+ messages in thread
end of thread, other threads:[~2020-08-16 17:39 UTC | newest]
Thread overview: 10+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-08-13 13:40 Bytea Example Naveen Kumar <naveenmcp@gmail.com>
2020-08-13 13:47 ` Adrian Klaver <adrian.klaver@aklaver.com>
2020-08-13 13:49 ` Naveen Kumar <naveenmcp@gmail.com>
2020-08-13 13:51 ` Adrian Klaver <adrian.klaver@aklaver.com>
2020-08-13 13:56 ` Naveen Kumar <naveenmcp@gmail.com>
2020-08-13 14:04 ` Adrian Klaver <adrian.klaver@aklaver.com>
2020-08-16 17:10 ` Naveen Kumar <naveenmcp@gmail.com>
2020-08-16 17:33 ` Francisco Olarte <folarte@peoplecall.com>
2020-08-16 17:39 ` Ron <ronljohnsonjr@gmail.com>
2020-08-13 14:19 ` David G. Johnston <david.g.johnston@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox