2,286 questions
3 votes
2 answers
117 views
EXPLAIN CREATE TABLE throws a syntax error at integer type specification - but query runs successfully
EXPLAIN CREATE TABLE TestTbl ( EId integer PRIMARY KEY, FullName VARCHAR(50) NOT NULL ) This query results in an error: ERROR: syntax error at or near "integer" LINE 2: EId ...
-2 votes
2 answers
119 views
Unique constraint on partitioned table must include all partitioning columns [duplicate]
I'm trying to create this partitioned table in my PostgreSQL database: create table messages_table ( id bigserial not null, class_name varchar(255), date_created timestamp, service ...
0 votes
0 answers
49 views
How can I configure Hibernate to generate DDL only for entities with @Table(schema = "...")?
I'm using Spring Boot with Hibernate 6+ and PostgreSQL, and I want Hibernate to generate tables only for entities that explicitly declare a schema using @Table(schema = "schema_name"). For ...
4 votes
1 answer
132 views
PostgreSQL "_uuid" data type
I am looking at some table DDL and I noticed we have two different data types. uuid _uuid (yes, it's literally "_uuid") I have never seen this before, what is the difference between them?
0 votes
1 answer
45 views
Can't execute DDL statements to create table in JPA Spring boot 2.7 get TransactionRequiredException even with @Transactional
In our SpringBoot 2.7, Java 8, postgres 15 app, we can use the entity Manager to run queries with arbitrary SQL. However, this approach does not work for us for DDL statements like create table. ...
0 votes
0 answers
38 views
How to get the ddl link from a mediafire normal link in nodejs
I’m working on a script to get the direct download link from a normal MediaFire link. But when I try to make a request to the MediaFire URL, I don’t get the actual HTML page. Instead, I get a page ...
0 votes
0 answers
46 views
DDL operation hangs on table with Flashback enabled
I have flashback enabled (as sysdba) for a table on my oracle 19 database: CREATE FLASHBACK ARCHIVE flashback_at0672 TABLESPACE users QUOTA 10G RETENTION 1 YEAR; ALTER TABLE at0672.assays ...
0 votes
2 answers
393 views
The disk space is not reclaimed after executing DROP COLUMN on a clickhouse table
In a clickhouse table (with MergeTree engine), there is a column with ~500GB of compressed data (according to the info in system.parts_columns table). However, when I dropped this column using ALTER ...
0 votes
1 answer
51 views
How do I generate a migration file with @Check contraints in Hibernate?
I have a problem. I put the @Check annotation with the appropriate checks over the entity field. Further, I tried to generate the migration file both through the “DDL by Entities” function and through ...
3 votes
0 answers
248 views
ClassCast exception class org.hibernate.type.CustomType cannot be cast to class org.hibernate.type.BasicPluralType
I've faced with a problem in one of my projects - created local db from dump file (Postgre 13), some columns were defined like varchar[] and interval. CREATE TABLE public.table ( id integer ...
0 votes
0 answers
48 views
Default revoking permissions from DDL user
I am trying to create a separate users for my DDL and DML operations on postgres. I am using the public schema. REVOKE ALL ON DATABASE app FROM PUBLIC; REVOKE ALL ON SCHEMA public FROM PUBLIC; CREATE ...
0 votes
0 answers
752 views
Only an ET or null statement is legal after a DDL Statement
I'm trying to run a statement in Teradata, using DBeaver 24.2. When I run my statement in Teradata SQL Assistant, it runs perfectly, but when I run it using DBeaver, I'm getting the following error: ...
0 votes
3 answers
2k views
ERROR: must be owner of table, but I am superuser
I have an postgres 16 DB in Docker container with volume. I wanted to hide standard postgres user and changed it's name to super (as example). Now I try to make something with any tables (DDL ...
1 vote
1 answer
119 views
Error "Conversion error from string " . . : : "." (335544334) when trying to add another column
Given is a Firebird 5.0 table with this DDL: CREATE TABLE KASSE_DETAILEDSTATISTICS (ORDERDATE KASSE_ORDERTIMESTAMP NOT NULL, PRODUCTID KASSE_PRODUCTID NOT NULL, CONSUMPTIONPLACE KASSE_INHAUS ...
0 votes
0 answers
54 views
getting an error when trying to duplicate table with DML
I was trying to duplicate data from an existing table to an empty table in different schema (all in the same database) and got an error. (PostgreSQL 16): This is for specific exercise, so I have to ...