External web tables are one of the most useful features when you you have to load data into a Greenplum database from different sources.
External web tables are one of the most useful features when you you have to load data into a Greenplum database from different sources.
[root@toy ~]# smartctl -a /dev/sdc
=== START OF INFORMATION SECTION ===
Device Model: INTEL SSDSA2CW120G3
...
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
3 Spin_Up_Time 0x0020 100 100 000 Old_age Offline - 0
4 Start_Stop_Count 0x0030 100 100 000 Old_age Offline - 0
5 Reallocated_Sector_Ct 0x0032 100 100 000 Old_age Always - 0
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 5225
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 58
170 Unknown_Attribute 0x0033 100 100 010 Pre-fail Always - 0
171 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 0
172 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0033 100 100 090 Pre-fail Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 34
225 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 201389
226 Load-in_Time 0x0032 100 100 000 Old_age Always - 2687040
227 Torq-amp_Count 0x0032 100 100 000 Old_age Always - 0
228 Power-off_Retract_Count 0x0032 100 100 000 Old_age Always - 314526
232 Available_Reservd_Space 0x0033 100 100 010 Pre-fail Always - 0
233 Media_Wearout_Indicator 0x0032 099 099 000 Old_age Always - 0
241 Total_LBAs_Written 0x0032 100 100 000 Old_age Always - 201389
242 Total_LBAs_Read 0x0032 100 100 000 Old_age Always - 133021
Not all of these attributes are labeled correctly, and some are "Unknown"; all the gory details are in the product specifications. You can see the Media Wearout above; here's the raw values for other interesting ones, formatted so they're more blog-friendly:
ID# ATTRIBUTE_NAME RAW_VALUE
9 Power_On_Hours 5225
12 Power_Cycle_Count 58
192 Power-Off_Retract_Count 34
225 Load_Cycle_Count 201389
241 Total_LBAs_Written 201389
242 Total_LBAs_Read 133021
192 (hex C0) is "Power-Off Retract Count". That's how many unsafe shutdowns the drive has been through, which are the situations where the battery backed cache in the drive has been triggered. With 34 of them here, you can see I've tried to get this drive to die that way.psql -x -c "SELECT oid,* FROM pg_class LIMIT 1"There is no column named oid in the pg_class table, but it's there if you ask for it. The oid used to be relied on more heavily in PostgreSQL as a way to identify rows. That's not true for regular tables anymore, and you really don't want to start doing that for your own tables. OIDs are mainly useful now when joining parts of the System Catalog together. A good example is the Disk Usage query. If you want to find the namespace a table is in, you need to know you can ask for its OID. It's possible to get some of this data out of more portable views like information_schema.tables. But many of the useful things in this area are PostgreSQL specific. Sometimes I see people starting with the information_schema views and joining against other tables using its text name fields, such as the listed table_name. That approach has several edge cases that don't work out correctly; not handling TOAST columns is a common example. That makes them more prone to breaking on you later, probably after your system has gone into production, than an OID based join.
JDBC is the driver used to access a database with Java. Greenplum has a full working JDBC implementation. In this short article we'll see how to use it.
With an announce on the forum, Greenplum staff has spoke out about the new version of their Database Management System. I can't resist to blog about some of its new features.
In the previous article we have seen how to install Greenplum on multiple nodes. After installation steps, we must init the entire system. Let's see how.
One of the main advantages using Greenplum is that it gains power when it uses multiple nodes. Horizontal scalability is a main feature of Greenplum.
Here is a compact handbook to install a multi-node Data Warehouse environment with Greenplum.
Greenplum does not officially support Ubuntu Server 11.10 as underlying operating system. However, I needed to install it on the most recent Ubuntu server just to perform some tests and evaluate it.
Through this article, we are going to complete the MapReduce job started in the previous article.
Commenti recenti