10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello,
I am running ubuntu 14.04.
Have just installed torrent into home directory but /dev/md2 is almost full.
Is it possible to resize md2 to get rid of any problem that may arise in the near future?
Filesystem Size Used Avail Use% Mounted on
udev 17G 4.1k 17G 1% /dev... (2 Replies)
Discussion started by: baris35
2 Replies
2. Red Hat
Hello.,
Could any one please share the informaiton about this or please point me the reference :
Assume, we have the following partition after linux machine is setup, it will mention like this :
bash$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 10G... (3 Replies)
Discussion started by: alnhk
3 Replies
3. Red Hat
Hello All,
I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows,
/boot - Linux Partition & another is
LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc).
Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies
4. SCO
I have SCO Openserver 5.0.5
Root partition is 96% full and I would like to make it bigger. How can this be done?
1) Can I use 'dd' to backup 'root' and then backup '/u' to a third hard disk, then divvy the primary hard disk to have a larger 'root' filesystem (i.e. previous root + u)
2) ... (5 Replies)
Discussion started by: grips03
5 Replies
5. Red Hat
Hi,
In my linux box I have installed /boot partition with 100MB. I have done compile for a newer kernel. The both kernels are required to me. Finally /boot partition has using 100%. I need to resize the /boot. Any body give the solution how to do resize the /boot partition without dusturbing the... (2 Replies)
Discussion started by: parsrigum
2 Replies
6. Red Hat
Hi Team,
Require your expertise on how to resize / partition.
This is VM.
Thank you.
Reggy
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 15G 13G 556M 96% /
/dev/sda1 965M 43M 873M 5% /boot
tmpfs 502M 0 ... (5 Replies)
Discussion started by: regmaster
5 Replies
7. Shell Programming and Scripting
Hello all
How is it going
I want Shell Patch
The work of the following division of the disk
Can this
200 MB EXT3 /boot
20 Gb EXT3 /
10 GB Swap
End Of Space ( Linux LVM )
Found a similar script can be customized by you to be the work required
#!/bin/bash
VSIZE=200
fdisk /dev/hda... (1 Reply)
Discussion started by: x-zer0
1 Replies
8. SCO
I have a 17GB SCSI disk in an SCO 5.0.6 server and it's running out of space because of a growing database on the disk. Consequently I would like to upgrade the 17GB to a 74GB disk and extend the partition.
First off, is partition extension available under HTFS - I know this is an old... (1 Reply)
Discussion started by: carribey
1 Replies
9. UNIX for Dummies Questions & Answers
I've created a partition with GNU Parted, how do I mount the partition?
The manual information at http://www.gnu.org/software/parted/manual/parted.html is good, but I am sure about how I mount the partition afterwards.
Thanks,
--Todd (1 Reply)
Discussion started by: jtp51
1 Replies
10. UNIX for Advanced & Expert Users
Experts,
I am trying to repartition my FreeBSD partition to accomodate 1GB of DOS partition so that I can have the samba share support. I wanted to know the procedure to resize an exsiting FreeBSD partition.
Thanks in advance for your help.
Regards,
Jim (1 Reply)
Discussion started by: jimmynath
1 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)