Giter VIP home page Giter VIP logo

datafiller's Issues

Error : ERROR: cannot perform FREEZE because the table was not created or truncated in the current subtransaction

Hi Team,

Please can someone help, I am getting below error while trying to insert data in a simple postgres database just to check datafiller working.

$ cat /tmp/library_new.sql

CREATE TABLE Book(
bid INTEGER PRIMARY KEY,
title VARCHAR NOT NULL
);

CREATE TABLE Reader(
rid INTEGER PRIMARY KEY,
firstname VARCHAR NOT NULL,
lastname VARCHAR NOT NULL,
born DATE NOT NULL,
gender BOOLEAN NOT NULL,
phone VARCHAR
);

CREATE TABLE Borrow(
rid INTEGER NOT NULL REFERENCES Reader,
bid INTEGER NOT NULL REFERENCES Book
);

Command Ran

psql -p 5151 -c "create database library"; ./datafiller --size=10 --filter /tmp/library_new.sql |psql -p 5151 library

Output

CREATE DATABASE
CREATE TABLE
CREATE TABLE
CREATE TABLE

filling table book (10)

ERROR: cannot perform FREEZE because the table was not created or truncated in the current subtransaction

filling table reader (10)

ERROR: cannot perform FREEZE because the table was not created or truncated in the current subtransaction

filling table borrow (10)

ERROR: cannot perform FREEZE because the table was not created or truncated in the current subtransaction
ANALYZE
ANALYZE
ANALYZE

I checked logging in to the database, found only empty tables were created.

Regards,
Pinakesh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.