GithubHelp home page GithubHelp logo

3130-a1's Introduction

CSI3130-Project Symmetric Hash Join

Group Members:

  • Giselle 300056566
  • Maddie 300227635
  • Deniz 300229393

Results

res

Problems Encountered

In our group, we faced several challenges when trying to run older versions of PostgreSQL on newer Mac hardware. The main issue was the incompatibility with Apple's shift to ARM architecture in their M1 and M2 chips, as our PostgreSQL versions were designed for Intel's x86 architecture. Updates in the macOS also made it difficult for these older PostgreSQL versions to function properly, especially with changes in system libraries and security protocols. Additionally, our older 32-bit PostgreSQL versions became obsolete with macOS's move to support only 64-bit applications. We also couldn't leverage the full potential of the newer Macs' advanced hardware, like faster SSDs and more RAM, leading to performance issues. Networking changes in macOS further complicated connectivity for our PostgreSQL setup. To resolve these issues, we had to use an older macos version.

test=# select e1.ename as "manager", e2.ename as "employee" test-# from emp e1, emp e2, dept d, manages m test-# where e1.eno = m.eno test-# and m.dno = d.dno test-# and d.dno = e2.dno test-# order by manager; server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The connection to the server was lost. Attempting reset: Failed. !>

When our group encountered the "server closed the connection unexpectedly" error during our SQL query execution, we first restarted the database server to re-establish a stable connection and reviewed the server logs. There, we found indications of intermittent network disruptions and a few instances of server overload, which likely caused the abrupt termination.

Tech Stack

C PostgreSQL

Getting Started

  1. Enter Postgres Folder: Navigate to the folder with cd postgresql-15.4.

  2. Install PostgreSQL: Run the following commands in order: ./configure make sudo su (enter your password) make install Create PostgreSQL User: Make a 'postgres' user in your system settings and set a password.

  3. Create Data Folder: Run mkdir -p /usr/local/pgsql/data and change ownership with chown postgres /usr/local/pgsql/data.

  4. Switch to PostgreSQL User: Use su - postgres.

  5. Test Installation:

Initialize database: /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data Start server: /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start Create a test database: /usr/local/pgsql/bin/createdb testdb

  1. Run python3 swapFiles.py

  2. Test SQL Command: In the terminal, run psql.

Prerequisites

  • C
  • PostgreSQL 8.1.7

3130-a1's People

Contributors

deniz-jasa avatar gisellegran avatar maddierioux avatar

Watchers

 avatar

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.