One background 1 signed tinyint using 2 signed tinyint extended two unsigned tinyint design and encoding 1 unsigned tinyint design 2 unsigned tinyint coding three encountered problems 1 the compilation was unsuccessful when compiling the expansion Pack 2 climits li Mitsh four additional content 1 unsigned tinyint expansion pack compilation installation 2 Create function five summary and Outlook 1 Summary 2 next expansion
I. Background 1.1 Use of signed tinyint
Signed tinyint this data type occup
Tags: sch limit cat CLI Service Type box external table batchWe want to export data from MySQL to Greenplum, follow these steps to1: Export tables from MySQL to external filesTaking Schema_name.table_name as an exampleSelectproduct_id, Number, name, English_name, Purchase_name, System_name, Bar_code, Category_one, Category_two, Category_three, parent_id, Parent_number, brand_id, supplier_id, Price, Ad_word, Give_integral, Shelf_life, FROM_ Unixtime (s
Greenplum is a distributed database with many PostgreSQL databases under it. Sometimes we need to know what the underlying node is doing. Can we directly have a view or SQL on the master node, you can view the SQL statements of each node and identify the machine and database of the port. The following describes the method:
The architecture of 3.3 and 4.0 has chan
In greenplum, it is difficult to obtain the field names after execution of any SQL statement.
For example, when writing a common tool, you can use the copy command to export an SQL statement to text, but the text exported by the name of each field does not exist, if you use your own SQL parsing, it will be too complicated.
If we want to obtain these field names, we do not actually execute the SQL statement, because the execution plan has been generate
Err Error:1.no pg_hba.conf entry for Host ":: 1", User "Gpmon", Database "Gpperfmon", SSL offSolve:pg_hba.conf增加: host gpperfmon gpmon ::1/128 trust (此处的trust应该为md5,否则后面会报错)2.error: In the installation workload Manaager error, follow the prompts to view the log, found a machine crontab not installedSolve:install vixie-cron3. Login Web Hint: Trust login is disabled.trust user Gpmon is not allowed to login Command CenterDescribe:Us
Greenplum management mode is the same as oracle schema. It is used to logically organize the storage containers of database objects. Different schemas do not share namespaces. Schema public is created by default after the database is created. each user has the permission to create an object in this schema. If no schema is specified, it is created here by default.
Gp_toolkit Administrative schema:the Greenplum Database includes the Gp_toolkit Schema, which collects system information Through log files and operating system commands. Can run a query against the Gp_toolkit to quickly view free disk space. Results are shown in bytes.
[Gpadmin@mdw ~]$ psql-d zwcdb-u zhongwc-h 192.168.1.23-w
Password for user zhongwc:
Psql (8.2.15)
Type ' help ' for help.
zwcdb=# Sele
When using the greenplum database, the following two functions are used to check the space occupied by the table: pg_relation_size and pg_size_pretty.
The former is used to view the data size, and the latter is the adjustment of human readable. The method is as follows:
Select pg_size_pretty (pg_relation_size ('relation _ name '));
Select pg_size_pretty (pg_relation_size (OID ));
However, this metho
Recently, I encountered several pitfalls and analyzed them one by one.
1. the hostname and address of the host name are inconsistent.
When another stress test environment was deployed and submitted to the test group for stress testing, an error was reported when my colleague modified the pg_0000.conf file to reload the configuration file. (The localhost. localdomain server cannot be found)
When I saw this error, I thought about it carefully. I performed operations on the deployment document, a
In greenplum/PostgreSQL, it is convenient to convert a string to a time. In many formats, GP can automatically identify whether the time character is used. If the time is not correct or the time is incorrect, the SQL statement reports an error.
aligputf8=# select'2011-13-10 10:10:10'::date;ERROR: date/time field value out of range:"2011-13-10 10:10:10"LINE 1: select'2011-13-10 10:10:10'::date; ^HINT: Perhaps you need a different"dates
GoldenGate synchronizes Oracle Data to GreenPlum
Source endOracle 11.2.0.4 RAC 2-NodesOracle Linux 5.8 x86_64Oracle GoldenGate V11.1.1.0.0 for Oracle 11g on Linux x86-64.zip
Oracle GoldenGate V11.1.1.0.0 For FlatFile on Linux 64-bit for OGG v11.1.1.0.0.zip
Target endGreenplum Database 4.2.6.1 4-NodesCentOS 5.7 x86_64
Oracle GoldenGate V11.1.1.0.0 for Oracle 11g on Linux x86-64.zip
Oracle GoldenGate V11.1.1.
The Gp_toolkit is a functional schema for Greenplum. Contains a number of useful functions.
[Gpadmin@node1 gpseg-1]$ psql-d peiybdb psql (8.3.23) Type ' help ' for help. peiybdb=# \dns+ List of schemas Name | Owner | Access Privileges | Description--------------------+---------+--------------------+--------------------------------- ----------------------------Gp_toolkit | Gpadmin |
Gpadmin=uc/g
Greenplum Query partition table information itself is not particularly friendly, need to do table association and do the corresponding processing, in order to facilitate later maintenance, here to create two views for the DBA to directly query, very convenient.1. Create a view of the list partition table createorreplaceviewv_gp_list_partition_metaasselect Pp.parrelid::regclasstable_name,pr1.parchildrelid::regclasschild_tbl_name,pr1.parnameas partition
Before you perform a greenplum installation, you need to configure the relevant system parameters, otherwise you will be prone to unexpected errors.1. Modifying system ParametersEdit/etc/sysctl.conf, the following is the minimum configuration Kernel.shmmax =500000000kernel.shmmni =4096kernel.shmall =4000000000kernel.sem =2505120001002048KERNEL.SYSRQ =1kernel.core_uses_pid =1KERNEL.MSGMNB =65536kernel.msgmax =65536kernel.msgmni =2048net.ipv4.tcp_syncoo
Label:Development proposed the need to synchronize from Greenplum to Oracle solution, wrote a script for scheduled processing.#!/bin/sh#copy_gp_2_ora. ShIf [$#-ne 1]; Thenecho "Usage:sh $ tablename"Exit 1FiTablename=$1Psql-h \timing offSet client_encoding= ' GB18030 ';\copy $TABLENAME to '/home/oracle/$TABLENAME. txt ' csv\qEofecho "Load dataInFile ' $TABLENAME. txt ' discardfile ' $TABLENAME. Dis 'Appendinto table $TABLENAMEFields terminated by ', 'O
Greenplum manages indexes. Considering the characteristics of OLAP systems, you should use indexes carefully and conservatively. Avoid using indexes on frequently updated columns; use B-tree indexes on highly selective columns; and use Bitmap indexes on low-selective columns. In general, using indexes in traditional databases can effectively improve data access efficiency. Especially in OLTP systems, you often only need to obtain several rows or parts
The system is not active recently and has not been upgraded. Therefore, you can optimize the entire ETL system on a stable basis. Top 10 cost time jobs are listed on a daily basis for analysis. The top1 costtime job uses the window functions first_value and last_value. The result SQL uses first_value, the window functions are sorted twice. Use the explain Section
Code It can be found that the two sort consumption is about 1.7 times that of one sort, the second sort is improved to one, and the S
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.