Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Display storage type and storage size Post 302519071 by RolfB on Tuesday 3rd of May 2011 01:51:33 AM
Old 05-03-2011
General info:
uname -a

Machine type:
model

or for 11.31:
machinfo

Full listing special devices in /dev catalog:
ioscan -fn

LVM, Volume groups and Logic volumes:
vgdisplay -v

Filsystem and filling:
bdf


Hope this helps.
This User Gave Thanks to RolfB For This Post:
 

2 More Discussions You Might Find Interesting

1. Solaris

How to check which type of storage is used in unix?

SunOS 5.10 Generic_142900-15 sun4v sparc SUNW,T5240 how can i check the storage type being used in unix solaris sparc system? please help me its urgnet.. thank you (22 Replies)
Discussion started by: aesgs
22 Replies

2. Filesystems, Disks and Memory

How to check which type of storage is used in unix

how can i check the storage type being used in unix solaris sparc system? please help me its urgnet.. thank you (4 Replies)
Discussion started by: aesgs
4 Replies
PG_FIELD_SIZE(3)														  PG_FIELD_SIZE(3)

pg_field_size - Returns the internal storage size of the named field

SYNOPSIS
int pg_field_size (resource $result, int $field_number) DESCRIPTION
pg_field_size(3) returns the internal storage size (in bytes) of the field number in the given PostgreSQL $result. Note This function used to be called pg_fieldsize(3). PARAMETERS
o $result - PostgreSQL query result resource, returned by pg_query(3), pg_query_params(3) or pg_execute(3) (among others). o $field_number - Field number, starting from 0. RETURN VALUES
The internal field storage size (in bytes). -1 indicates a variable length field. FALSE is returned on error. EXAMPLES
Example #1 Getting information about fields <?php $dbconn = pg_connect("dbname=publisher") or die("Could not connect"); $res = pg_query($dbconn, "select * from authors where author = 'Orwell'"); $i = pg_num_fields($res); for ($j = 0; $j < $i; $j++) { echo "column $j "; $fieldname = pg_field_name($res, $j); echo "fieldname: $fieldname "; echo "printed length: " . pg_field_prtlen($res, $fieldname) . " characters "; echo "storage length: " . pg_field_size($res, $j) . " bytes "; echo "field type: " . pg_field_type($res, $j) . " "; } ?> The above example will output: column 0 fieldname: author printed length: 6 characters storage length: -1 bytes field type: varchar column 1 fieldname: year printed length: 4 characters storage length: 2 bytes field type: int2 column 2 fieldname: title printed length: 24 characters storage length: -1 bytes field type: varchar SEE ALSO
pg_field_prtlen(3), pg_field_type(3). PHP Documentation Group PG_FIELD_SIZE(3)
All times are GMT -4. The time now is 01:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy