473,388 Members | 1,230 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Postgres vector computation. ERROR on Alibaba Cloud

Postgres vector computation. ERROR: row is too big: size 16392, maximum size 8160
Database version: Postgres 10.3
OS: CentOS 7
Recently, I have been looking at Postgres VOPS. When I used the populate function of VOPS to convert data from the primitive data type table to the VOPS data type table, I got the the following error prompt:
select populate(destination:='vops_table'::regclass, source:='std_table'::regclass)
ERROR: row is too big: size 16392, maximum size 8160
The data type of my primitive data type table is int2 int4 int8 float4, with 64 fields, and 27,855 rows in total.
When I run SELECT pg_column_size(t.*) FROM std_table AS t; the minimal result is 122, and the maximum result is 240, averaged at 157.52.
Please can anyone tell me how I can solve this problem?
P.S.: 1) I searched on the internet and someone said that the Postgres data block size is 8 Kb. Does the problem have something to do with this size limit? If so, how can I increase the data block size?
2) Do the “blocks” of a database and the “pages” of an operating system refer to the same thing? I tried to set hugePage in CentOS 7 and huge_pages = on in the postgresql.conf file of Postgre.
After I restarted the VOPS extension and executed the populate function, the error persisted.
Apr 28 '18 #1
2 2816
TimoHa
22
In PostgreSQL, the data block size is 8 Kb. This value can be specified at initdb.
In this case, the “block” of a database has little to do with the “page” of an operating system.
I guess the problem is because you used the Plain mode to store the table during conversion. In this mode, each record cannot exceed the size of a page. See https://www.postgresql.org/docs/curr...ltertable.html for details.
I recommend you use Toast tables.
May 3 '18 #2
TimoHa
22
In PostgreSQL, the data block size is 8 Kb. This value can be specified at initdb.
In this case, the “block” of a database has little to do with the “page” of an operating system.
I guess the problem is because you used the Plain mode to store the table during conversion. In this mode, each record cannot exceed the size of a page. See https://www.postgresql.org/docs/curr...ltertable.html for details.
I recommend you use Toast tables.
May 3 '18 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Dan1701 | last post by:
Is building a Hadoop cluster on Alibaba Cloud with CM + CDH supported?
0
by: IvanH | last post by:
Does Alibaba Cloud ECS Automatic Backup Occupy Server Space?*
0
by: IvanH | last post by:
Can Alibaba Cloud ECS defend against attacks?*
0
by: IvanH | last post by:
What lines are used by Alibaba Cloud ECS?*
0
by: IvanH | last post by:
Does Alibaba Cloud have CDN service?
0
by: IvanH | last post by:
Can OS be Switched or Automatically Added/Upgraded on Alibaba Cloud?
0
by: IvanH | last post by:
https://www.decent.vip My website uses Alibaba Cloud OSS and Alibaba Cloud CDN for Wordpress.It said I can visit this page but it returns a 403 error. And the icon is not there. What can I do?
0
by: IvanH | last post by:
How Can I Migrate from F(x) Data Cloud to Alibaba Cloud when I do web hosting?
1
by: IvanH | last post by:
In Alibaba Cloud API Gateway, a certificate authentication error or certificate expiration prompt is returned during an HTTPS API call.
1
by: IvanH | last post by:
Recently when I worked on the feature of scanning a QR code to make a Tmall payment, the curl_exec function always gave an Error 500 report after I coded an order on WeChat and then initiated a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.