Unix Technical Forum

Size of data stored in bytea record?

This is a discussion on Size of data stored in bytea record? within the Pgsql General forums, part of the PostgreSQL category; --> Is there a way that I can find out the size of a bytea record? I am storing images ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 08:10 PM
Carlos
 
Posts: n/a
Default Size of data stored in bytea record?

Is there a way that I can find out the size of a bytea record? I am storing
images into bytea fields and I just want to know the size of the image that
it has been saved in the field


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 08:10 PM
Carlos Oliva
 
Posts: n/a
Default Re: Size of data stored in bytea record?

Thank you Michael. I am using the BIT_LENGTH function which seems to return
the size in bits of the stored blob
"Michael Fuhr" <mike@fuhr.org> wrote in message
news:20050125221500.GA96092@winnie.fuhr.org...
> On Tue, Jan 25, 2005 at 04:58:33PM -0500, Carlos wrote:
>
>> Is there a way that I can find out the size of a bytea record? I am
>> storing
>> images into bytea fields and I just want to know the size of the image
>> that
>> it has been saved in the field

>
> See the "Binary String Functions and Operators" section of the
> "Functions and Operators" chapter in the documentation:
>
> http://www.postgresql.org/docs/8.0/s...arystring.html
>
> --
> Michael Fuhr
> http://www.fuhr.org/~mfuhr/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 08:10 PM
Michael Fuhr
 
Posts: n/a
Default Re: Size of data stored in bytea record?

On Wed, Jan 26, 2005 at 08:38:55AM -0500, Carlos Oliva wrote:

> Thank you Michael. I am using the BIT_LENGTH function which seems to return
> the size in bits of the stored blob


Do you need the length in bits? If not, then one of the other
functions in the documentation I referenced might be closer to
what you seek.

http://www.postgresql.org/docs/8.0/s...arystring.html

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:57 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com